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

Unified Diff: third_party/WebKit/LayoutTests/fast/dom/Selection/use-counters.html

Issue 2710593002: Selection API: collapse(), setBaseAndExtent(), and extend() don't need to have code to check negati… (Closed)
Patch Set: Created 3 years, 10 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
Index: third_party/WebKit/LayoutTests/fast/dom/Selection/use-counters.html
diff --git a/third_party/WebKit/LayoutTests/fast/dom/Selection/use-counters.html b/third_party/WebKit/LayoutTests/fast/dom/Selection/use-counters.html
index 9682116edb86c062b16f7df8e59fc87722c7ba49..352726cb19073c57886b0bd6f4351f955ad3ff3c 100644
--- a/third_party/WebKit/LayoutTests/fast/dom/Selection/use-counters.html
+++ b/third_party/WebKit/LayoutTests/fast/dom/Selection/use-counters.html
@@ -13,10 +13,6 @@ test(function() {
test(function() {
var SelectionSetBaseAndExtentNull = 1084; // From UseCounter.h
assert_false(internals.isUseCounted(document, SelectionSetBaseAndExtentNull));
- assert_throws('IndexSizeError', function() {
- document.getSelection().setBaseAndExtent(null, -1, null, -1);
- });
- assert_false(internals.isUseCounted(document, SelectionSetBaseAndExtentNull));
document.getSelection().setBaseAndExtent(null, 0, null, 0)
assert_true(internals.isUseCounted(document, SelectionSetBaseAndExtentNull));
}, 'selection.setBaseAndExtent(null, 0, null, 0)');

Powered by Google App Engine
This is Rietveld 408576698