Title: [105299] trunk/LayoutTests
Revision
105299
Author
pfeld...@chromium.org
Date
2012-01-18 10:58:52 -0800 (Wed, 18 Jan 2012)

Log Message

Not reviewed: fix failing inspector test.

* inspector/elements/set-html-via-resource.html:

Modified Paths

Diff

Modified: trunk/LayoutTests/ChangeLog (105298 => 105299)


--- trunk/LayoutTests/ChangeLog	2012-01-18 18:57:40 UTC (rev 105298)
+++ trunk/LayoutTests/ChangeLog	2012-01-18 18:58:52 UTC (rev 105299)
@@ -1,3 +1,9 @@
+2012-01-18  Pavel Feldman  <pfeld...@google.com>
+
+        Not reviewed: fix failing inspector test.
+
+        * inspector/elements/set-html-via-resource.html:
+
 2012-01-18  Tim Horton  <timothy_hor...@apple.com>
 
         [CG] Rasterized scaling of transformed SVG shapes with gradient fill and -webkit-svg-shadow applied

Modified: trunk/LayoutTests/inspector/elements/set-html-via-resource.html (105298 => 105299)


--- trunk/LayoutTests/inspector/elements/set-html-via-resource.html	2012-01-18 18:57:40 UTC (rev 105298)
+++ trunk/LayoutTests/inspector/elements/set-html-via-resource.html	2012-01-18 18:58:52 UTC (rev 105299)
@@ -12,7 +12,11 @@
     WebInspector.experimentsSettings.freeFlowDOMEditing.enableForTest();
     new WebInspector.DOMModelResourceBinding(WebInspector.domAgent);
 
-    InspectorTest.runAfterResourcesAreFinished(["set-html-via-resource.html", "set-html-via-resource-iframe.html"], step1);
+    InspectorTest.expandElementsTree(step0);
+    function step0()
+    {
+        InspectorTest.runAfterResourcesAreFinished(["set-html-via-resource.html", "set-html-via-resource-iframe.html"], step1);
+    }
 
     function step1()
     {
@@ -27,8 +31,13 @@
 
     function step2(url)
     {
-        var doc = WebInspector.domAgent._documentURLToDocument[url];
-        DOMAgent.getOuterHTML(doc.id, step3);
+        for (var id in WebInspector.domAgent._idToDOMNode) {
+            var node = WebInspector.domAgent._idToDOMNode[id];
+            if (node.documentURL === url) {
+                DOMAgent.getOuterHTML(parseInt(id), step3);
+                break;
+            }
+        }
     }
 
     function step3(error, text)
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to