Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(31)

Side by Side Diff: third_party/WebKit/LayoutTests/inspector/sources/debugger/internal-script-flag-for-injected-script.html

Issue 2247483003: [DevTools] Removed isInternalScript flag from protocol (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@remove-internal-script-flag
Patch Set: Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 <html>
2 <head>
3 <script src="../../../http/tests/inspector/inspector-test.js"></script>
4 <script src="../../../http/tests/inspector/console-test.js"></script>
5
6 <script>
7 function newWorld()
8 {
9 testRunner.evaluateScriptInIsolatedWorld(239, "console.log(42);\n//# sourceU RL=239.js");
10 }
11
12 function test()
13 {
14 InspectorTest.debuggerModel.addEventListener(WebInspector.DebuggerModel.Even ts.ParsedScriptSource, step2);
15 InspectorTest.evaluateInPage("newWorld()\n//# sourceURL=foo.js");
16
17 var expectedScriptParsed = 2;
18 function step2(event)
19 {
20 var script = event.data;
21 InspectorTest.addResult(script.sourceURL + ":" + (script._isInternalScri pt ? "Internal script" : "Not internal script"));
22 --expectedScriptParsed;
23 if (!expectedScriptParsed)
24 InspectorTest.completeTest();
25 }
26 }
27 </script>
28 </head>
29 <body onload="runTest()">
30 <p>
31 Tests that injected script has isInternalScript flag.
32 </p>
33 </body>
34 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698