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

Side by Side Diff: third_party/WebKit/Source/devtools/tests/console/console-assert.html

Issue 2829663005: DevTools: delete copied tests and update readme (Closed)
Patch Set: Created 3 years, 8 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 b()
8 {
9 console.assert(false, 1);
10 console.assert(false, "a", "b");
11 }
12
13 function a()
14 {
15 b();
16 }
17 //# sourceURL=console-assert.html
18 </script>
19
20 <script>
21 function test()
22 {
23 var callCount = 0;
24 function callback()
25 {
26 if (++callCount === 2)
27 InspectorTest.expandConsoleMessages(onExpandedMessages);
28 }
29
30 function onExpandedMessages()
31 {
32 InspectorTest.dumpConsoleMessages();
33 InspectorTest.completeTest();
34 }
35
36 InspectorTest.evaluateInPage("setTimeout(a, 0)");
37 InspectorTest.addConsoleSniffer(callback, true);
38 }
39
40 </script>
41 </head>
42
43 <body onload="runTest()">
44 <p>
45 Tests that console.assert() will dump a message and stack trace with source URLs and line numbers.
46 </p>
47
48 </body>
49 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698