Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / inspector / sources / debugger / internal-script-flag-for-injected-script.html
blob1a11aaae34a5a829d8aa5739b7e74f5d7fd77e38
1 <html>
2 <head>
3 <script src="../../../http/tests/inspector/inspector-test.js"></script>
4 <script src="../../../http/tests/inspector/console-test.js"></script>
6 <script>
7 function test()
9 InspectorTest.debuggerModel.addEventListener(WebInspector.DebuggerModel.Events.ParsedScriptSource, step2);
10 // evaluateInConsole force InjectedScript.js loading and evaluate script with expression
11 InspectorTest.evaluateInConsole("console.log(42)");
13 var expectedScriptParsed = 2;
14 function step2(event)
16 var script = event.data;
17 InspectorTest.addResult(script._isInternalScript ? "Internal script" : "Not internal script");
18 --expectedScriptParsed;
19 if (!expectedScriptParsed)
20 InspectorTest.completeTest();
23 </script>
24 </head>
25 <body onload="runTest()">
26 <p>
27 Tests that injected script has isInternalScript flag.
28 </p>
29 </body>
30 </html>