<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> | |
<html> | |
<head> | |
<script src="../../../resources/js-test.js"></script> | |
</head> | |
<body> | |
<div id="description"></div> | |
<div id="console"></div> | |
<script> | |
var expectedType = window.location.search[1]; | |
description("This tests that performance.navigation.type is " + expectedType); | |
window.performance = window.performance || {}; | |
var navigation = performance.navigation || {}; | |
shouldBe("navigation.type", stringify(expectedType)); | |
</script> | |
</body> | |
</html> | |