Description

This test validates that, within child documents, all of the Page Visibility API attributes exist, are read-only, and match the value of the attributes within the parent document.

Summary

Harness status: OK

Found 14 tests

Details

ResultTest NameMessage
Passdocument.hidden is defined and not null.
Asserts run
Pass
assert_true(true, "document.hidden is defined and not null.")
    at Test.<anonymous> ( /page-visibility/resources/pagevistestharness.js:39:13)
Passdocument.visibilityState is defined and not null.
Asserts run
Pass
assert_true(true, "document.visibilityState is defined and not null.")
    at Test.<anonymous> ( /page-visibility/resources/pagevistestharness.js:45:13)
PassPage Visibility API Child Document Test
Asserts runNo asserts ran
Passdocument.hidden is defined for frame with no style attribute.
Asserts run
Pass
assert_not_equals(false, undefined, "document.hidden is defined for frame with no style attribute.")
    at Test.<anonymous> ( /page-visibility/resources/pagevistestharness.js:66:24)
Passdocument.visibilityState is defined for frame with no style attribute.
Asserts run
Pass
assert_not_equals("visible", undefined, "document.visibilityState is defined for frame with no style attribute.")
    at Test.<anonymous> ( /page-visibility/resources/pagevistestharness.js:67:24)
Passdocument.visibilityState for frame with no style attribute == visible
Asserts run
Pass
assert_equals("visible", "visible", "document.visibilityState for frame with no style attribute == visible")
    at Test.<anonymous> ( /page-visibility/resources/pagevistestharness.js:81:26)
PassPage Visibility API Child Document Test 1
Asserts runNo asserts ran
Passdocument.hidden is defined for frame with 'display:none' style.
Asserts run
Pass
assert_not_equals(false, undefined, "document.hidden is defined for frame with 'display:none' style.")
    at Test.<anonymous> ( /page-visibility/resources/pagevistestharness.js:66:24)
Passdocument.visibilityState is defined for frame with 'display:none' style.
Asserts run
Pass
assert_not_equals("visible", undefined, "document.visibilityState is defined for frame with 'display:none' style.")
    at Test.<anonymous> ( /page-visibility/resources/pagevistestharness.js:67:24)
Passdocument.visibilityState for frame with 'display:none' style == visible
Asserts run
Pass
assert_equals("visible", "visible", "document.visibilityState for frame with 'display:none' style == visible")
    at Test.<anonymous> ( /page-visibility/resources/pagevistestharness.js:81:26)
PassPage Visibility API Child Document Test 2
Asserts runNo asserts ran
Passdocument.hidden is defined for frame with 'visibility:hidden' style.
Asserts run
Pass
assert_not_equals(false, undefined, "document.hidden is defined for frame with 'visibility:hidden' style.")
    at Test.<anonymous> ( /page-visibility/resources/pagevistestharness.js:66:24)
Passdocument.visibilityState is defined for frame with 'visibility:hidden' style.
Asserts run
Pass
assert_not_equals("visible", undefined, "document.visibilityState is defined for frame with 'visibility:hidden' style.")
    at Test.<anonymous> ( /page-visibility/resources/pagevistestharness.js:67:24)
Passdocument.visibilityState for frame with 'visibility:hidden' style == visible
Asserts run
Pass
assert_equals("visible", "visible", "document.visibilityState for frame with 'visibility:hidden' style == visible")
    at Test.<anonymous> ( /page-visibility/resources/pagevistestharness.js:81:26)

IFrame with no style attribute
IFrame with "display:none" style
IFrame with "visibility:hidden" style