Bug 800231 - More logging to check where test times out, r=past
authorGirish Sharma <scrapmachines@gmail.com>
Fri, 12 Oct 2012 13:08:09 +0530
changeset 114766 b07f4a276e76b45589b9cd78192c977aea05359e
parent 114765 a8f4069538a6a93d0d82565bb808811e8a3835e2
child 114767 fd093acb629e09e54af97455911aafc137a8067e
push idunknown
push userunknown
push dateunknown
reviewerspast
bugs800231
milestone19.0a1
Bug 800231 - More logging to check where test times out, r=past
browser/devtools/webconsole/test/browser_webconsole_bug_782653_CSS_links_in_Style_Editor.js
--- a/browser/devtools/webconsole/test/browser_webconsole_bug_782653_CSS_links_in_Style_Editor.js
+++ b/browser/devtools/webconsole/test/browser_webconsole_bug_782653_CSS_links_in_Style_Editor.js
@@ -49,32 +49,44 @@ function checkStyleEditorForSheetAndLine
       }
       return;
     }
 
     ok(true, "Correct Style Sheet is selected in the editor");
 
     // Editor is already loaded, check the current line of caret.
     if (aEditor.sourceEditor) {
+      ok(true, "Editor is already loaded, check the current line of caret");
       executeSoon(function() {
+        ok(true, "Execute soon occured");
+        ok(aEditor.sourceEditor != null, "sourceeditor not null");
+        ok(aEditor.sourceEditor.getCaretPosition() != null, "position not null");
+        ok(aEditor.sourceEditor.getCaretPosition().line != null, "line not null");
         is(aEditor.sourceEditor.getCaretPosition().line, aLine,
            "Correct line is selected");
         if (aCallback) {
           aCallback();
         }
       });
       return;
     }
 
+    ok(true, "Editor is not loaded, waiting for it.");
+    ok(aEditor, "aEditor is defined.");
     // Wait for source editor to be loaded.
     aEditor.addActionListener({
       onAttach: function onAttach() {
+        ok(true, "on attach happened");
         aEditor.removeActionListener(this);
-
+        ok(true, "this removed");
         executeSoon(function() {
+          ok(true, "execute soon");
+          ok(aEditor.sourceEditor != null, "sourceeditor not null");
+          ok(aEditor.sourceEditor.getCaretPosition() != null, "position not null");
+          ok(aEditor.sourceEditor.getCaretPosition().line != null, "line not null");
           is(aEditor.sourceEditor.getCaretPosition().line, aLine,
              "Correct line is selected");
           if (aCallback) {
             aCallback();
           }
         });
       }
     });