Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(236)

Unified Diff: third_party/WebKit/LayoutTests/intersection-observer/observer-exceptions.html

Issue 2646633002: IntersectionObserver: remove gc-timing-revealing execeptions. (Closed)
Patch Set: Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/intersection-observer/observer-exceptions-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/intersection-observer/observer-exceptions-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698