(func, msg, properties)
| 5 | var performanceNamespace = window.performance; |
| 6 | var namespace_check = false; |
| 7 | function wp_test(func, msg, properties) |
| 8 | { |
| 9 | // only run the namespace check once |
| 10 | if (!namespace_check) |
| 11 | { |
| 12 | namespace_check = true; |
| 13 | |
| 14 | if (performanceNamespace === undefined || performanceNamespace == null) |
| 15 | { |
| 16 | // show a single error that window.performance is undefined |
| 17 | // The window.performance attribute provides a hosting area for performance related attributes. |
| 18 | test(function() { assert_true(performanceNamespace !== undefined && performanceNamespace != null, "window.performance is defined and not null"); }, "window.performance is defined and not null."); |
| 19 | } |
| 20 | } |
| 21 | |
| 22 | test(func, msg, properties); |
| 23 | } |
| 24 | |
| 25 | function test_true(value, msg, properties) |
| 26 | { |
no test coverage detected