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

Side by Side Diff: third_party/WebKit/LayoutTests/inspector/sources/debugger/debugger-compile-and-run.html

Issue 2234983002: [DevTools] Removed wasThrown from evaluate-like protocol methods (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: a 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
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/debugger-test.js"></script> 4 <script src="../../../http/tests/inspector/debugger-test.js"></script>
5 <script> 5 <script>
6 var test = function() 6 var test = function()
7 { 7 {
8 function printExceptionDetails(exceptionDetails) 8 function printExceptionDetails(exceptionDetails)
9 { 9 {
10 InspectorTest.addResult("exceptionDetails:") 10 InspectorTest.addResult("exceptionDetails:")
(...skipping 23 matching lines...) Expand all
34 34
35 function compileCallback(error, scriptId, exceptionDetails) 35 function compileCallback(error, scriptId, exceptionDetails)
36 { 36 {
37 InspectorTest.assertTrue(!error); 37 InspectorTest.assertTrue(!error);
38 InspectorTest.assertTrue(!exceptionDetails); 38 InspectorTest.assertTrue(!exceptionDetails);
39 InspectorTest.assertTrue(!!scriptId); 39 InspectorTest.assertTrue(!!scriptId);
40 InspectorTest.addResult("Running script"); 40 InspectorTest.addResult("Running script");
41 InspectorTest.RuntimeAgent.runScript(scriptId, contextId, "conso le", false, runCallback.bind(this)); 41 InspectorTest.RuntimeAgent.runScript(scriptId, contextId, "conso le", false, runCallback.bind(this));
42 } 42 }
43 43
44 function runCallback(error, result, wasThrown, exceptionDetails) 44 function runCallback(error, result, exceptionDetails)
45 { 45 {
46 InspectorTest.assertTrue(!error); 46 InspectorTest.assertTrue(!error);
47 InspectorTest.assertTrue(!wasThrown); 47 InspectorTest.assertTrue(!exceptionDetails);
48 InspectorTest.addResult("Script result: " + result.value); 48 InspectorTest.addResult("Script result: " + result.value);
49 next(); 49 next();
50 } 50 }
51 }, 51 },
52 52
53 function testRunError(next) 53 function testRunError(next)
54 { 54 {
55 var expression = "var a = 1; a + c; "; 55 var expression = "var a = 1; a + c; ";
56 InspectorTest.addResult("Compiling script"); 56 InspectorTest.addResult("Compiling script");
57 InspectorTest.RuntimeAgent.compileScript(expression, "test.js", true , contextId, compileCallback.bind(this)); 57 InspectorTest.RuntimeAgent.compileScript(expression, "test.js", true , contextId, compileCallback.bind(this));
58 58
59 function compileCallback(error, scriptId, exceptionDetails) 59 function compileCallback(error, scriptId, exceptionDetails)
60 { 60 {
61 InspectorTest.assertTrue(!error); 61 InspectorTest.assertTrue(!error);
62 InspectorTest.assertTrue(!exceptionDetails); 62 InspectorTest.assertTrue(!exceptionDetails);
63 InspectorTest.assertTrue(!!scriptId); 63 InspectorTest.assertTrue(!!scriptId);
64 InspectorTest.addResult("Running script"); 64 InspectorTest.addResult("Running script");
65 InspectorTest.RuntimeAgent.runScript(scriptId, contextId, "conso le", false, runCallback.bind(this)); 65 InspectorTest.RuntimeAgent.runScript(scriptId, contextId, "conso le", false, runCallback.bind(this));
66 } 66 }
67 67
68 function runCallback(error, result, wasThrown, exceptionDetails) 68 function runCallback(error, result, exceptionDetails)
69 { 69 {
70 InspectorTest.assertTrue(!error); 70 InspectorTest.assertTrue(!error);
71 InspectorTest.assertTrue(wasThrown); 71 InspectorTest.assertTrue(!!exceptionDetails);
72 printExceptionDetails(exceptionDetails); 72 printExceptionDetails(exceptionDetails);
73 next(); 73 next();
74 } 74 }
75 }, 75 },
76 76
77 function testCompileError(next) 77 function testCompileError(next)
78 { 78 {
79 var expression = "}"; 79 var expression = "}";
80 InspectorTest.addResult("Compiling script"); 80 InspectorTest.addResult("Compiling script");
81 InspectorTest.RuntimeAgent.compileScript(expression, "test.js", true , contextId, compileCallback.bind(this)); 81 InspectorTest.RuntimeAgent.compileScript(expression, "test.js", true , contextId, compileCallback.bind(this));
82 82
83 function compileCallback(error, scriptId, exceptionDetails) 83 function compileCallback(error, scriptId, exceptionDetails)
84 { 84 {
85 InspectorTest.assertTrue(!error); 85 InspectorTest.assertTrue(!error);
86 InspectorTest.assertTrue(!!exceptionDetails); 86 InspectorTest.assertTrue(!!exceptionDetails);
87 InspectorTest.assertTrue(!scriptId); 87 InspectorTest.assertTrue(!scriptId);
88 printExceptionDetails(exceptionDetails); 88 printExceptionDetails(exceptionDetails);
89 next(); 89 next();
90 } 90 }
91 } 91 }
92 ]); 92 ]);
93 } 93 }
94 </script> 94 </script>
95 </head> 95 </head>
96 <body onload="runTest()"> 96 <body onload="runTest()">
97 <p>Tests separate compilation and run.</p> 97 <p>Tests separate compilation and run.</p>
98 <a href="https://bugs.webkit.org/show_bug.cgi?id=89646">Bug 89646.</a> 98 <a href="https://bugs.webkit.org/show_bug.cgi?id=89646">Bug 89646.</a>
99 </body> 99 </body>
100 </html> 100 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698