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

Side by Side Diff: LayoutTests/inspector/sources/debugger/script-failed-to-parse.html

Issue 272613002: DevTools: implemented scriptFailedToParse protocol event (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 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
(Empty)
1 <html>
2 <head>
3 <script src="../../../http/tests/inspector/inspector-test.js"></script>
4 <script src="../../../http/tests/inspector/debugger-test.js"></script>
5 <script>
6 function addScript(url)
7 {
8 var head = document.getElementsByTagName('head')[0];
9 var script = document.createElement('script');
10 script.setAttribute('src', url);
11 head.appendChild(script);
12 }
13
14 var test = function()
aandrey 2014/07/07 19:44:31 nit: function test() {
15 {
16 InspectorTest.runDebuggerTestSuite([
17 function testScriptParsedEvent(next)
18 {
19 WebInspector.debuggerModel.addEventListener(WebInspector.DebuggerMod el.Events.FailedToParseScriptSource, scriptFailedToParse);
20 InspectorTest.evaluateInPage("addScript('resources/script-failed-to- parse.js')");
21
22 function scriptFailedToParse(event)
23 {
24 var script = event.data;
25 if (script.sourceURL.indexOf("script-failed-to-parse.js") !== -1 ) {
26 InspectorTest.addResult("Event with script-failed-to-parse.j s received");
27 WebInspector.debuggerModel.removeEventListener(WebInspector. DebuggerModel.Events.FailedToParseScriptSource, scriptFailedToParse);
28 next();
29 }
30 }
31 },
32 ]);
33 }
34 </script>
35 </head>
36 <body onload="runTest()">
aandrey 2014/07/07 19:44:31 <p> Tests that... </p>
37 </body>
38 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698