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

Unified Diff: LayoutTests/fast/dom/Range/deleteData-replaceData-count-overflow-expected.txt

Issue 229793004: Add CharacterData.deleteData()/replaceData() overflow handling. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 8 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: LayoutTests/fast/dom/Range/deleteData-replaceData-count-overflow-expected.txt
diff --git a/LayoutTests/fast/dom/Range/deleteData-replaceData-count-overflow-expected.txt b/LayoutTests/fast/dom/Range/deleteData-replaceData-count-overflow-expected.txt
new file mode 100644
index 0000000000000000000000000000000000000000..744d388945fdcebdc83888b1ea261eb9803d4b9a
--- /dev/null
+++ b/LayoutTests/fast/dom/Range/deleteData-replaceData-count-overflow-expected.txt
@@ -0,0 +1,19 @@
+Test deleteData() + replaceData() overflow handling.
+
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+
+
+PASS textNode = new Text('chopped off and then some'); textNode is non-null.
+PASS textNode.deleteData(11, 0xfffffff7); textNode.data is "chopped off"
+PASS range.endOffset is 11
+PASS textNode = new Text('hello world'); textNode is non-null.
+PASS textNode.replaceData(6, 0xfffffffe, 'bob'); textNode.data is "hello bob"
+PASS range.endOffset is 6
+PASS textNode = new Text('hello world'); textNode is non-null.
+PASS textNode.replaceData(6, -1, 'bob'); textNode.data is "hello bob"
+PASS textNode = new Text('hello world'); textNode is non-null.
+PASS textNode.replaceData(6, -2, 'bob'); textNode.data is "hello bob"
+PASS successfullyParsed is true
+
+TEST COMPLETE
+

Powered by Google App Engine
This is Rietveld 408576698