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

Unified Diff: client/tests/client/dom/PerformanceApiTest.dart

Issue 9314008: Migrate all LayoutTests/dart/dom to main repo. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Update config file Created 8 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « client/tests/client/dom/KeyNameLocationTest.dart ('k') | client/tests/client/dom/StorageTest.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: client/tests/client/dom/PerformanceApiTest.dart
diff --git a/client/tests/client/dom/PerformanceApiTest.dart b/client/tests/client/dom/PerformanceApiTest.dart
new file mode 100644
index 0000000000000000000000000000000000000000..022ab68bf27db5df755882676194a82f9331ef92
--- /dev/null
+++ b/client/tests/client/dom/PerformanceApiTest.dart
@@ -0,0 +1,20 @@
+#library('PerformanceApiTest');
+#import('../../../testing/unittest/unittest.dart');
+#import('dart:dom');
+
+main() {
+ forLayoutTests();
+ test('PerformanceApi', () {
+ // Check that code below will not throw exceptions.
+ var requestStart = window.performance.timing.requestStart;
+ var responseStart = window.performance.timing.responseStart;
+ var responseEnd = window.performance.timing.responseEnd;
+
+ var loading = window.performance.timing.domLoading;
+ var loadedStart = window.performance.timing.domContentLoadedEventStart;
+ var loadedEnd = window.performance.timing.domContentLoadedEventEnd;
+ var complete = window.performance.timing.domComplete;
+
+ var loadEventStart = window.performance.timing.loadEventStart;
+ });
+}
« no previous file with comments | « client/tests/client/dom/KeyNameLocationTest.dart ('k') | client/tests/client/dom/StorageTest.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698