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

Side by Side Diff: third_party/WebKit/LayoutTests/inspector-protocol/runtime/runtime-console-timestamp.html

Issue 2954093003: [DevTools] Migrate inspector-protocol/runtime tests to new harness (Closed)
Patch Set: fail: Created 3 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 type="text/javascript" src="../../http/tests/inspector-protocol/resource s/inspector-protocol-test.js"></script>
4 <script>
5
6 function test()
7 {
8
9 var messages = [];
10
11 function messageAdded(data)
12 {
13 var payload = data.params;
14
15 if (messages.length > 0)
16 InspectorTest.log("Message " + messages.length + " has non-decreasin g timestamp: " + (payload.timestamp >= messages[messages.length - 1].timestamp)) ;
17
18 messages.push(payload);
19 InspectorTest.log("Message has timestamp: " + !!payload.timestamp);
20
21 InspectorTest.log("Message timestamp doesn't differ too much from curren t time (one minute interval): " + (Math.abs(new Date().getTime() - payload.times tamp) < 60000));
22 if (messages.length === 3)
23 InspectorTest.completeTest();
24 }
25
26 InspectorTest.eventHandler["Runtime.consoleAPICalled"] = messageAdded;
27 InspectorTest.sendCommand("Runtime.enable", {});
28
29 InspectorTest.sendCommand("Runtime.evaluate", { expression: "console.log('te stUnique'); for (var i = 0; i < 2; ++i) console.log('testDouble');" });
30 }
31
32 </script>
33 </head>
34 <body onload="runTest()">
35 </body>
36 </html>
37
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698