<script src="../../http/tests/inspector/debugger-test.js"></script>
<script>
-var test = function()
+function test()
{
var scripts = [];
InspectorTest.startDebuggerTest(step1);
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();
}
function f1()
{
}
-
-window.onload = runTest;</script>
-
+</script>
<script> function f2() {} </script>
<script>function f3() {}
</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>