| Index: third_party/WebKit/LayoutTests/intersection-observer/observer-exceptions.html
|
| diff --git a/third_party/WebKit/LayoutTests/intersection-observer/observer-exceptions.html b/third_party/WebKit/LayoutTests/intersection-observer/observer-exceptions.html
|
| index a266655239ff77d0c76910f2633f965edd49d8c6..e41569c531b0ee0c02ff8dc3ede9abad1291e2cc 100644
|
| --- a/third_party/WebKit/LayoutTests/intersection-observer/observer-exceptions.html
|
| +++ b/third_party/WebKit/LayoutTests/intersection-observer/observer-exceptions.html
|
| @@ -80,40 +80,8 @@
|
|
|
| observer = initializeObserverThenRemoveRootDiv();
|
| gc();
|
| -
|
| - try {
|
| - observer.observe(target);
|
| - testFailed("IntersectionObserver.observe() with a deleted root did not throw.");
|
| - } catch(e) {
|
| - exc = e;
|
| - shouldBeType("exc", "DOMException");
|
| - shouldBe("exc.code", "DOMException.INVALID_STATE_ERR");
|
| - }
|
| -
|
| - try {
|
| - observer.unobserve(target);
|
| - testFailed("IntersectionObserver.unobserve() with a deleted root did not throw.");
|
| - } catch(e) {
|
| - exc = e;
|
| - shouldBeType("exc", "DOMException");
|
| - shouldBe("exc.code", "DOMException.INVALID_STATE_ERR");
|
| - }
|
| -
|
| - try {
|
| - observer.disconnect();
|
| - testFailed("IntersectionObserver.disconnect() with a deleted root did not throw.");
|
| - } catch(e) {
|
| - exc = e;
|
| - shouldBeType("exc", "DOMException");
|
| - shouldBe("exc.code", "DOMException.INVALID_STATE_ERR");
|
| - }
|
| -
|
| - try {
|
| - observer.takeRecords();
|
| - testFailed("IntersectionObserver.takeRecords() with a deleted root did not throw.");
|
| - } catch(e) {
|
| - exc = e;
|
| - shouldBeType("exc", "DOMException");
|
| - shouldBe("exc.code", "DOMException.INVALID_STATE_ERR");
|
| - }
|
| + observer.observe(target);
|
| + observer.unobserve(target);
|
| + observer.disconnect();
|
| + shouldBeEqualToNumber("0", observer.takeRecords().length);
|
| </script>
|
|
|