3 <script src=
"../../../http/tests/inspector/inspector-test.js"></script>
4 <script src=
"../../../http/tests/inspector/debugger-test.js"></script>
10 InspectorTest
.startDebuggerTest(step1
);
14 InspectorTest
.queryScripts(function(script
) { step2({ data
: script
}) });
15 InspectorTest
.debuggerModel
.addEventListener(WebInspector
.DebuggerModel
.Events
.ParsedScriptSource
, step2
);
20 var script
= event
.data
;
21 if (script
.sourceURL
!== InspectorTest
.resourceTreeModel
.inspectedPageURL())
24 if (scripts
.length
=== 6)
30 scripts
.sort(function(x
, y
) { return x
.lineOffset
- y
.lineOffset
});
31 for (var i
= 0; i
< scripts
.length
; ++i
) {
32 InspectorTest
.addResult("script " + (i
+ 1) + ":");
33 InspectorTest
.addResult(" start: " + scripts
[i
].lineOffset
+ ":" + scripts
[i
].columnOffset
);
34 InspectorTest
.addResult(" end: " + scripts
[i
].endLine
+ ":" + scripts
[i
].endColumn
);
36 InspectorTest
.completeDebuggerTest();
44 <script> function f2() {} </script>
45 <script>function f3() {}
52 <body onload=
"window.dummy = function() { }; runTest()">
54 Tests that valid parsed script notifications are received by front-end.
55 <a href=
"https://bugs.webkit.org/show_bug.cgi?id=52721">Bug
52721</a>