Index: /CKEditor/tests/dt/plugins/link/link.html
===================================================================
--- /CKEditor/tests/dt/plugins/link/link.html	(revision 4793)
+++ /CKEditor/tests/dt/plugins/link/link.html	(revision 4794)
@@ -89,21 +89,24 @@
 						{
 				            editor.focus();
-				            editor.execCommand( 'link' );
-							// waiting for dialog to open.
-				            this.wait( function()
-							 {
-							 	var dialog = editor._.storedDialogs[ 'link' ];
-							 	var urlField = dialog.getContentElement( 'info', 'url' );
-							 	urlField.setValue( 'svn.fckeditor.net' );
+							this.wait( function()
+							{
+								editor.execCommand( 'link' );
+								// waiting for dialog to open.
+								this.wait( function()
+								 {
+									 var dialog = editor._.storedDialogs[ 'link' ];
+									 var urlField = dialog.getContentElement( 'info', 'url' );
+									 urlField.setValue( 'http://svn.fckeditor.net' );
 
-							 	dialog.fire( 'ok' );
-							 	dialog.hide();
+									 dialog.fire( 'ok' );
+									 dialog.hide();
 
-							 	var result = editor.getData();
-							 	assert.areEqual(
-								 '<p><a href="http://svn.fckeditor.net">http://svn.fckeditor.net</a></p>',
-								 result, 'Created link element doesn\'t match.' );
+									 var result = editor.getData();
+									 assert.areEqual(
+									 '<p><a href="http://svn.fckeditor.net">http://svn.fckeditor.net</a></p>',
+									 result, 'Created link element doesn\'t match.' );
 
-							 }, 3000 );
+								 }, 3000 );
+							}, 0 );
 						} );
 					}, this );
