| Index: LayoutTests/fast/dom/characterdata-api-arguments-expected.txt
|
| diff --git a/LayoutTests/fast/dom/characterdata-api-arguments-expected.txt b/LayoutTests/fast/dom/characterdata-api-arguments-expected.txt
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..57ae731dfc415d6645dbf1b4f6abd03926e08ec3
|
| --- /dev/null
|
| +++ b/LayoutTests/fast/dom/characterdata-api-arguments-expected.txt
|
| @@ -0,0 +1,51 @@
|
| +Tests that the CharacterData API arguments are correctly validated.
|
| +
|
| +On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
|
| +
|
| +
|
| +PASS text.data is "abcd"
|
| +PASS text.__proto__.__proto__ is CharacterData.prototype
|
| +PASS text.appendData('efg') did not throw exception.
|
| +PASS text.data is "abcdefg"
|
| +PASS text.appendData() threw exception TypeError: Not enough arguments.
|
| +PASS text.data is "abcdefg"
|
| +PASS text.insertData(0, 'abcd') did not throw exception.
|
| +PASS text.data is "abcdefg"
|
| +PASS text.insertData() threw exception TypeError: Not enough arguments.
|
| +PASS text.data is "abcdefg"
|
| +PASS text.insertData(0) threw exception TypeError: Not enough arguments.
|
| +PASS text.data is "abcdefg"
|
| +PASS text.insertData(999, 'test') threw exception IndexSizeError: Index or size was negative, or greater than the allowed value..
|
| +PASS text.data is "abcdefg"
|
| +PASS text.insertData(-1, 'test') threw exception IndexSizeError: Index or size was negative, or greater than the allowed value..
|
| +PASS text.data is "abcdefg"
|
| +PASS text.deleteData(4, 3) did not throw exception.
|
| +PASS text.data is "abcd"
|
| +PASS text.deleteData() threw exception TypeError: Not enough arguments.
|
| +PASS text.data is "abcd"
|
| +PASS text.deleteData(0) threw exception TypeError: Not enough arguments.
|
| +PASS text.data is "abcd"
|
| +PASS text.deleteData(999, 3) threw exception IndexSizeError: Index or size was negative, or greater than the allowed value..
|
| +PASS text.data is "abcd"
|
| +PASS text.deleteData(-1, 3) threw exception IndexSizeError: Index or size was negative, or greater than the allowed value..
|
| +PASS text.data is "abcd"
|
| +PASS text.deleteData(1, 999) did not throw exception.
|
| +PASS text.data is "a"
|
| +PASS text.replaceData(0, 0, 'abcd') did not throw exception.
|
| +PASS text.data is "abcdefg"
|
| +PASS text.replaceData() threw exception TypeError: Not enough arguments.
|
| +PASS text.data is "abcdefg"
|
| +PASS text.replaceData(0) threw exception TypeError: Not enough arguments.
|
| +PASS text.data is "abcdefg"
|
| +PASS text.replaceData(0, 0) threw exception TypeError: Not enough arguments.
|
| +PASS text.data is "abcdefg"
|
| +PASS text.replaceData(999, 3, 'test') threw exception IndexSizeError: Index or size was negative, or greater than the allowed value..
|
| +PASS text.data is "abcdefg"
|
| +PASS text.deleteData(-1, 3, 'test') threw exception IndexSizeError: Index or size was negative, or greater than the allowed value..
|
| +PASS text.data is "abcdefg"
|
| +PASS text.replaceData(1, 999, 'aaa') did not throw exception.
|
| +PASS text.data is "aaaa"
|
| +PASS successfullyParsed is true
|
| +
|
| +TEST COMPLETE
|
| +
|
|
|