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

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

Issue 2181453002: [DevTools] Never stop in InjectedScriptSource (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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
1 <html> 1 <html>
2 <head> 2 <head>
3 <script src="../../../http/tests/inspector/inspector-test.js"></script> 3 <script src="../../../http/tests/inspector/inspector-test.js"></script>
4 <script src="../../../http/tests/inspector/console-test.js"></script> 4 <script src="../../../http/tests/inspector/console-test.js"></script>
5 5
6 <script> 6 <script>
7 function newWorld() 7 function newWorld()
8 { 8 {
9 testRunner.evaluateScriptInIsolatedWorld(239, "console.log(42);\n//# sourceU RL=239.js"); 9 testRunner.evaluateScriptInIsolatedWorld(239, "console.log(42);\n//# sourceU RL=239.js");
10 } 10 }
11 11
12 function test() 12 function test()
13 { 13 {
14 InspectorTest.debuggerModel.addEventListener(WebInspector.DebuggerModel.Even ts.ParsedScriptSource, step2); 14 InspectorTest.debuggerModel.addEventListener(WebInspector.DebuggerModel.Even ts.ParsedScriptSource, step2);
15 InspectorTest.evaluateInPage("newWorld()"); 15 InspectorTest.evaluateInPage("newWorld()\n//# sourceURL=foo.js");
16 16
17 var expectedScriptParsed = 2; 17 var expectedScriptParsed = 2;
18 function step2(event) 18 function step2(event)
19 { 19 {
20 var script = event.data; 20 var script = event.data;
21 InspectorTest.addResult(script._isInternalScript ? "Internal script" : " Not internal script"); 21 InspectorTest.addResult(script.sourceURL + ":" + (script._isInternalScri pt ? "Internal script" : "Not internal script"));
22 --expectedScriptParsed; 22 --expectedScriptParsed;
23 if (!expectedScriptParsed) 23 if (!expectedScriptParsed)
24 InspectorTest.completeTest(); 24 InspectorTest.completeTest();
25 } 25 }
26 } 26 }
27 </script> 27 </script>
28 </head> 28 </head>
29 <body onload="runTest()"> 29 <body onload="runTest()">
30 <p> 30 <p>
31 Tests that injected script has isInternalScript flag. 31 Tests that injected script has isInternalScript flag.
32 </p> 32 </p>
33 </body> 33 </body>
34 </html> 34 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698