OLD | NEW |
1 #library('PerformanceApiTest'); | 1 #library('PerformanceApiTest'); |
2 #import('../../../testing/unittest/unittest.dart'); | 2 #import('../../../testing/unittest/unittest_dom.dart'); |
3 #import('dart:dom'); | 3 #import('dart:dom'); |
4 | 4 |
5 main() { | 5 main() { |
6 forLayoutTests(); | 6 forLayoutTests(); |
7 test('PerformanceApi', () { | 7 test('PerformanceApi', () { |
8 // Check that code below will not throw exceptions. | 8 // Check that code below will not throw exceptions. |
9 var requestStart = window.performance.timing.requestStart; | 9 var requestStart = window.performance.timing.requestStart; |
10 var responseStart = window.performance.timing.responseStart; | 10 var responseStart = window.performance.timing.responseStart; |
11 var responseEnd = window.performance.timing.responseEnd; | 11 var responseEnd = window.performance.timing.responseEnd; |
12 | 12 |
13 var loading = window.performance.timing.domLoading; | 13 var loading = window.performance.timing.domLoading; |
14 var loadedStart = window.performance.timing.domContentLoadedEventStart; | 14 var loadedStart = window.performance.timing.domContentLoadedEventStart; |
15 var loadedEnd = window.performance.timing.domContentLoadedEventEnd; | 15 var loadedEnd = window.performance.timing.domContentLoadedEventEnd; |
16 var complete = window.performance.timing.domComplete; | 16 var complete = window.performance.timing.domComplete; |
17 | 17 |
18 var loadEventStart = window.performance.timing.loadEventStart; | 18 var loadEventStart = window.performance.timing.loadEventStart; |
19 }); | 19 }); |
20 } | 20 } |
OLD | NEW |