Title: [131309] trunk/LayoutTests
Revision
131309
Author
[email protected]
Date
2012-10-15 09:45:57 -0700 (Mon, 15 Oct 2012)

Log Message

Unreviewed inspector tests fix.

* http/tests/inspector-enabled/dynamic-scripts-expected.txt:
* http/tests/inspector-enabled/dynamic-scripts.html:
* inspector/debugger/dynamic-scripts-expected.txt:
* inspector/debugger/dynamic-scripts.html:

Modified Paths

Diff

Modified: trunk/LayoutTests/ChangeLog (131308 => 131309)


--- trunk/LayoutTests/ChangeLog	2012-10-15 16:29:44 UTC (rev 131308)
+++ trunk/LayoutTests/ChangeLog	2012-10-15 16:45:57 UTC (rev 131309)
@@ -1,3 +1,12 @@
+2012-10-15  Vsevolod Vlasov  <[email protected]>
+
+        Unreviewed inspector tests fix.
+
+        * http/tests/inspector-enabled/dynamic-scripts-expected.txt:
+        * http/tests/inspector-enabled/dynamic-scripts.html:
+        * inspector/debugger/dynamic-scripts-expected.txt:
+        * inspector/debugger/dynamic-scripts.html:
+
 2012-10-15  Dana Jansens  <[email protected]>
 
         Layout Test plugins/update-widgets-crash.html is failing

Modified: trunk/LayoutTests/http/tests/inspector-enabled/dynamic-scripts-expected.txt (131308 => 131309)


--- trunk/LayoutTests/http/tests/inspector-enabled/dynamic-scripts-expected.txt	2012-10-15 16:29:44 UTC (rev 131308)
+++ trunk/LayoutTests/http/tests/inspector-enabled/dynamic-scripts-expected.txt	2012-10-15 16:45:57 UTC (rev 131309)
@@ -1,7 +1,9 @@
 Tests that scripts for dynamically added script elements are shown in sources panel if inspector is opened after the scripts were loaded.
 
 Bug 99324
+Debugger was enabled.
 UISourceCodes:
+    debugger-test.js
     dynamic-script.js
     dynamic-scripts.html
     dynamic-scripts.html (1)
@@ -9,4 +11,5 @@
     evalSourceURL.js
     inspector-test.js
     scriptElementContentSourceURL.js
+Debugger was disabled.
 

Modified: trunk/LayoutTests/http/tests/inspector-enabled/dynamic-scripts.html (131308 => 131309)


--- trunk/LayoutTests/http/tests/inspector-enabled/dynamic-scripts.html	2012-10-15 16:29:44 UTC (rev 131308)
+++ trunk/LayoutTests/http/tests/inspector-enabled/dynamic-scripts.html	2012-10-15 16:45:57 UTC (rev 131309)
@@ -2,6 +2,7 @@
 <html>
 <head>
 <script src=""
+<script src=""
 <script>
 function appendDynamicScriptElement(src, content)
 {
@@ -40,18 +41,23 @@
 
 function test()
 {
-    InspectorTest.runAfterPendingDispatches(step1);
+    InspectorTest.startDebuggerTest(step2);
 
-    function step1()
+    function step2()
     {
+        InspectorTest.runAfterPendingDispatches(step3);
+    }
+
+    function step3()
+    {
         var panel = WebInspector.showPanel("scripts");
         var uiSourceCodes = WebInspector.workspace.uiSourceCodes();
         var urls = uiSourceCodes.map(function(uiSourceCode) { return uiSourceCode.parsedURL.lastPathComponent; });
-        var urls = urls.sort();
+        urls.sort();
         InspectorTest.addResult("UISourceCodes:");
         for (var i = 0; i < urls.length; ++i)
             InspectorTest.addResult("    " + urls[i]);
-        InspectorTest.completeTest();
+        InspectorTest.completeDebuggerTest();
     }
 }
 </script>

Modified: trunk/LayoutTests/inspector/debugger/dynamic-scripts-expected.txt (131308 => 131309)


--- trunk/LayoutTests/inspector/debugger/dynamic-scripts-expected.txt	2012-10-15 16:29:44 UTC (rev 131308)
+++ trunk/LayoutTests/inspector/debugger/dynamic-scripts-expected.txt	2012-10-15 16:45:57 UTC (rev 131309)
@@ -1,8 +1,10 @@
-CONSOLE MESSAGE: line 29: Done.
+CONSOLE MESSAGE: line 30: Done.
 Tests that scripts for dynamically added script elements are shown in sources panel if loaded with inspector open.
 
 Bug 99324
+Debugger was enabled.
 UISourceCodes:
+    debugger-test.js
     dynamic-script.js
     dynamic-scripts.html
     dynamic-scripts.html (1)
@@ -10,4 +12,5 @@
     evalSourceURL.js
     inspector-test.js
     scriptElementContentSourceURL.js
+Debugger was disabled.
 

Modified: trunk/LayoutTests/inspector/debugger/dynamic-scripts.html (131308 => 131309)


--- trunk/LayoutTests/inspector/debugger/dynamic-scripts.html	2012-10-15 16:29:44 UTC (rev 131308)
+++ trunk/LayoutTests/inspector/debugger/dynamic-scripts.html	2012-10-15 16:45:57 UTC (rev 131309)
@@ -2,6 +2,7 @@
 <html>
 <head>
 <script src=""
+<script src=""
 <script>
 function appendDynamicScriptElement(src, content)
 {
@@ -36,11 +37,16 @@
 
     function step1()
     {
-        InspectorTest.runAfterPendingDispatches(step2);
+        InspectorTest.startDebuggerTest(step2);
     }
 
     function step2()
     {
+        InspectorTest.runAfterPendingDispatches(step3);
+    }
+
+    function step3()
+    {
         var panel = WebInspector.showPanel("scripts");
         var uiSourceCodes = WebInspector.workspace.uiSourceCodes();
         var urls = uiSourceCodes.map(function(uiSourceCode) { return uiSourceCode.parsedURL.lastPathComponent; });
@@ -48,7 +54,7 @@
         InspectorTest.addResult("UISourceCodes:");
         for (var i = 0; i < urls.length; ++i)
             InspectorTest.addResult("    " + urls[i]);
-        InspectorTest.completeTest();
+        InspectorTest.completeDebuggerTest();
     }
 }
 </script>
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to