mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Update web-platform-tests to revision 912d5081b62d6e6a2f847935c82722e31cca7a1f
This commit is contained in:
parent
eeaca0b26d
commit
a44e48301c
75 changed files with 1894 additions and 292 deletions
|
@ -1,3 +1,7 @@
|
|||
/*
|
||||
author: W3C http://www.w3.org/
|
||||
help: http://www.w3.org/TR/navigation-timing/#sec-window.performance-attribute
|
||||
*/
|
||||
var performanceNamespace = window.performance;
|
||||
var namespace_check = false;
|
||||
function wp_test(func, msg, properties)
|
||||
|
@ -10,7 +14,8 @@ function wp_test(func, msg, properties)
|
|||
if (performanceNamespace === undefined || performanceNamespace == null)
|
||||
{
|
||||
// show a single error that window.performance is undefined
|
||||
test(function() { assert_true(performanceNamespace !== undefined && performanceNamespace != null, "window.performance is defined and not null"); }, "window.performance is defined and not null.", {author:"W3C http://www.w3.org/",help:"http://www.w3.org/TR/navigation-timing/#sec-window.performance-attribute",assert:"The window.performance attribute provides a hosting area for performance related attributes. "});
|
||||
// The window.performance attribute provides a hosting area for performance related attributes.
|
||||
test(function() { assert_true(performanceNamespace !== undefined && performanceNamespace != null, "window.performance is defined and not null"); }, "window.performance is defined and not null.");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue