Upstream version 10.39.225.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / inspector / console / console-uncaught-exception.html
index bb765e4..769ce38 100644 (file)
@@ -10,11 +10,14 @@ function test()
     InspectorTest.evaluateInPage("loadIframe()");
     function addMessage(viewMessage)
     {
-        if (viewMessage.toString().indexOf("setTimeout") !== -1) {
-            InspectorTest.expandConsoleMessages();
-            InspectorTest.dumpConsoleMessages();
-            InspectorTest.completeTest();
-        }
+        if (viewMessage.toString().indexOf("setTimeout") !== -1)
+            InspectorTest.expandConsoleMessages(onExpanded);
+    }
+
+    function onExpanded()
+    {
+        InspectorTest.dumpConsoleMessages();
+        InspectorTest.completeTest();
     }
 }