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

Unified Diff: third_party/WebKit/LayoutTests/editing/style/apply-style-crash2.html

Issue 2693813002: Selection API: Some functions should throw InvalidNodeTypeError and IndexSizeError. (Closed)
Patch Set: adjust 2 more tests 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/editing/style/apply-style-crash2.html
diff --git a/third_party/WebKit/LayoutTests/editing/style/apply-style-crash2.html b/third_party/WebKit/LayoutTests/editing/style/apply-style-crash2.html
index 7483cb97864471f053735ef31dd54c606e0470ea..6e4cda4dbea76d2f2ffedb8b2ce1281fad0c1e6d 100644
--- a/third_party/WebKit/LayoutTests/editing/style/apply-style-crash2.html
+++ b/third_party/WebKit/LayoutTests/editing/style/apply-style-crash2.html
@@ -13,7 +13,7 @@ el1.appendChild(el2);
el2.parentNode.insertBefore(document.createElement('video'), el2);
el2.parentNode.insertBefore(document.createElement('input'), el2);
document.designMode = 'on';
-window.getSelection().setBaseAndExtent(el1, 2, el2, 4);
+window.getSelection().setBaseAndExtent(el1, 2, el2, 0);
document.designMode = 'off';
window.getSelection().modify('extend', 'backward', 'character');
el1.innerHTML = "PASS";

Powered by Google App Engine
This is Rietveld 408576698