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

Side by Side Diff: LayoutTests/inspector/timeline/timeline-start-time.html

Issue 212893002: Use monotonicallyIncreasingTime for Timeline timestamps (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: removed a test, it's not applicable now Created 6 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 <html>
2 <head>
3 <script src="../../http/tests/inspector/inspector-test.js"></script>
4 <script src="../../http/tests/inspector/timeline-test.js"></script>
5 <script>
6
7 function performActions()
8 {
9 console.timeStamp("time is an illusion");
10 }
11
12 function test()
13 {
14 var beforeStart = Date.now();
15 InspectorTest.startTimeline();
16 InspectorTest.waitForRecordType("TimeStamp", onTimeStamp);
17 InspectorTest.evaluateInPage("performActions()");
18
19 function onTimeStamp(record)
20 {
21 var now = Date.now();
22 var eventTime = record.startTime;
23 InspectorTest.assertGreaterOrEqual(eventTime, beforeStart, "event time s hould be after timeline start time");
24 InspectorTest.assertGreaterOrEqual(now, Math.floor(eventTime), "event ti me should be before now");
25 InspectorTest.addResult("done");
26 InspectorTest.stopTimeline(InspectorTest.completeTest.bind(InspectorTest ));
27 }
28 }
29
30 </script>
31 </head>
32
33 <body onload="runTest()">
34 <p>
35 Tests sanity of timeline timestamps.
36 </p>
37
38 </body>
39 </html>
OLDNEW
« no previous file with comments | « LayoutTests/TestExpectations ('k') | LayoutTests/inspector/timeline/timeline-start-time-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698