2011-09-07 Pavel Podivilov <podivilov@chromium.org>
authorpodivilov@chromium.org <podivilov@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 7 Sep 2011 18:14:50 +0000 (18:14 +0000)
committerpodivilov@chromium.org <podivilov@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 7 Sep 2011 18:14:50 +0000 (18:14 +0000)
        Unreviewed, build fix after r94674.

        * inspector/debugger/script-formatter.html:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@94689 268f45cc-cd09-0410-ab3c-d52691b4dbfc

LayoutTests/ChangeLog
LayoutTests/inspector/debugger/script-formatter.html

index 22aad92..00dbfa9 100644 (file)
@@ -1,3 +1,9 @@
+2011-09-07  Pavel Podivilov  <podivilov@chromium.org>
+
+        Unreviewed, build fix after r94674.
+
+        * inspector/debugger/script-formatter.html:
+
 2011-09-07  Ryosuke Niwa  <rniwa@webkit.org>
 
         Skip media/media-controls-invalid-url.html on Mac for now because it has been failing.
index 8038f59..996add8 100644 (file)
@@ -185,16 +185,10 @@ var test = function()
             function didEvaluate()
             {
                 dumpConsoleMessageURLs();
-                panel._presentationModel.addEventListener(WebInspector.DebuggerPresentationModel.Events.UISourceCodeReplaced,  uiSourceCodeReplaced);
+                InspectorTest.addSniffer(WebInspector, "formatLinkText", InspectorTest.runAfterPendingDispatches.bind(InspectorTest, didFormatLinkText));
                 panel._toggleFormatSource();
             }
 
-            function uiSourceCodeReplaced(event)
-            {
-                if (event.data.uiSourceCode.url.indexOf("script-formatter.html") !== -1)
-                    InspectorTest.runAfterPendingDispatches(didFormatLinkText);
-            }
-
             function didFormatLinkText()
             {
                 dumpConsoleMessageURLs();