Summary

Harness status: OK

Found 9 tests

Details

ResultTest NameMessage
PassIntersectionObserver constructor with { threshold: [1.1] }
Asserts run
Pass
assert_throws_js(function "function RangeError() { [native code] }", function "function() {     new IntersectionObserver(e => {}, {threshold: [1.1]})   }")
    at Test.<anonymous> ( /intersection-observer/observer-exceptions.html:8:3)
PassIntersectionObserver constructor with { threshold: ["foo"] }
Asserts run
Pass
assert_throws_js(function "function TypeError() { [native code] }", function "function() {     new IntersectionObserver(e => {}, {threshold: ["foo"]})   }")
    at Test.<anonymous> ( /intersection-observer/observer-exceptions.html:14:3)
PassIntersectionObserver constructor with { rootMargin: "1" }
Asserts run
Pass
assert_throws_dom("SYNTAX_ERR", function "function() {     new IntersectionObserver(e => {}, {rootMargin: "1"})   }")
    at Test.<anonymous> ( /intersection-observer/observer-exceptions.html:20:3)
PassIntersectionObserver constructor with { rootMargin: "2em" }
Asserts run
Pass
assert_throws_dom("SYNTAX_ERR", function "function() {     new IntersectionObserver(e => {}, {rootMargin: "2em"})   }")
    at Test.<anonymous> ( /intersection-observer/observer-exceptions.html:26:3)
PassIntersectionObserver constructor with { rootMargin: "auto" }
Asserts run
Pass
assert_throws_dom("SYNTAX_ERR", function "function() {     new IntersectionObserver(e => {}, {rootMargin: "auto"})   }")
    at Test.<anonymous> ( /intersection-observer/observer-exceptions.html:32:3)
PassIntersectionObserver constructor with { rootMargin: "calc(1px + 2px)" }
Asserts run
Pass
assert_throws_dom("SYNTAX_ERR", function "function() {     new IntersectionObserver(e => {}, {rootMargin: "calc(1px + 2px)"})   }")
    at Test.<anonymous> ( /intersection-observer/observer-exceptions.html:38:3)
PassIntersectionObserver constructor with { rootMargin: "1px !important" }
Asserts run
Pass
assert_throws_dom("SYNTAX_ERR", function "function() {     new IntersectionObserver(e => {}, {rootMargin: "1px !important"})   }")
    at Test.<anonymous> ( /intersection-observer/observer-exceptions.html:44:3)
PassIntersectionObserver constructor with { rootMargin: "1px 1px 1px 1px 1px" }
Asserts run
Pass
assert_throws_dom("SYNTAX_ERR", function "function() {     new IntersectionObserver(e => {}, {rootMargin: "1px 1px 1px 1px 1px"})   }")
    at Test.<anonymous> ( /intersection-observer/observer-exceptions.html:50:3)
PassIntersectionObserver.observe("foo")
Asserts run
Pass
assert_throws_js(function "function TypeError() { [native code] }", function "function() {     let observer = new IntersectionObserver(c => {}, {});     observer.observe("foo");   }")
    at Test.<anonymous> ( /intersection-observer/observer-exceptions.html:56:3)