tizen beta release
[framework/web/webkit-efl.git] / LayoutTests / inspector / debugger / debugger-scripts.html
index 1d7542e..9deb692 100755 (executable)
@@ -4,7 +4,7 @@
 <script src="../../http/tests/inspector/debugger-test.js"></script>
 
 <script>
-var test = function()
+function test()
 {
     var scripts = [];
     InspectorTest.startDebuggerTest(step1);
@@ -18,10 +18,10 @@ var test = function()
     function step2(event)
     {
         var script = event.data;
-        if (script.sourceURL !== WebInspector.mainResource.url)
+        if (script.sourceURL !== WebInspector.inspectedPageURL)
             return;
         scripts.push(script);
-        if (scripts.length === 5)
+        if (scripts.length === 6)
             step3();
     }
 
@@ -40,9 +40,7 @@ var test = function()
 function f1()
 {
 }
-
-window.onload = runTest;</script>
-
+</script>
    <script> function f2() {}    </script>
    <script>function f3() {}
 </script>
@@ -51,10 +49,11 @@ window.onload = runTest;</script>
 </script>
 
 </head>
-
+<body onload="window.dummy = function() { }; runTest()">
 <p>
 Tests that valid parsed script notifications are received by front-end.
 <a href="https://bugs.webkit.org/show_bug.cgi?id=52721">Bug 52721</a>
 </p>
+</body>
 
 </html>