Files
sdk/tests/html/performance_api_test.dart
T
gram@google.com 981c4b11df Restructure pkg/unittest and pkg/webdriver to follow the pub conventions.
This means all imports of unittest in our test code had to change to include 'lib' in the path.
While doing that change I changed the library/imports to the new syntax in the affected files.
Review URL: https://codereview.chromium.org//11301046

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14443 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-01 23:09:47 +00:00

22 lines
799 B
Dart

library PerformanceApiTest;
import '../../pkg/unittest/lib/unittest.dart';
import '../../pkg/unittest/lib/html_config.dart';
import 'dart:html';
main() {
useHtmlConfiguration();
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;
});
}