16 lines
598 B
JavaScript
16 lines
598 B
JavaScript
importScripts("/resources/testharness.js");
|
|
|
|
test(() => {
|
|
assert_throws_js(TypeError, () => {
|
|
performance.measure('name', 'navigationStart', 'navigationStart');
|
|
});
|
|
}, "When converting 'navigationStart' to a timestamp, the global object has to be a Window object.");
|
|
|
|
test(() => {
|
|
assert_throws_js(TypeError, () => {
|
|
performance.mark('navigationStart');
|
|
performance.measure('name', 'navigationStart', 'navigationStart');
|
|
});
|
|
}, "When converting 'navigationStart' to a timestamp and a mark named 'navigationStart' exists, the global object has to be a Window object.");
|
|
|
|
done();
|