https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 2ecb5abe933bc46e324ea1a1f8528a844b99e762 authored by kaixinjxq on 14 March 2018, 02:09:20 UTC
Add sensor tests that throw NotSupportedError when set an unsupported option
Tip revision: 2ecb5ab
nav2_test_instance_accessible_from_the_start.html
<!DOCTYPE html>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script>
test(function() {
  var navigationTiming2 = window.performance.getEntriesByType('navigation')[0];
  assert_true(navigationTiming2 !== undefined);
  assert_equals(navigationTiming2.entryType, "navigation");
  assert_equals(navigationTiming2.startTime, 0);
  assert_equals(navigationTiming2.initiatorType, "navigation");
  done();
}, "PerformanceNavigationTiming instance exists with reasonable values.");
</script>
back to top