Changeset 134530 in webkit
- Timestamp:
- Nov 13, 2012 8:42:46 PM (11 years ago)
- Location:
- trunk
- Files:
-
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r134528 r134530 1 2012-11-13 Erik Arvidsson <arv@chromium.org> 2 3 Update DOMException name: InvalidCharacterError 4 https://bugs.webkit.org/show_bug.cgi?id=102128 5 6 Reviewed by Darin Adler. 7 8 Updated tests and expectations. 9 10 * fast/dom/Document/createElement-invalid-names-expected.txt: 11 * fast/dom/Document/createElement-invalid-names.html: 12 * fast/dom/Element/prefix-setter-exception-expected.txt: 13 * fast/dom/Window/atob-btoa-expected.txt: 14 * fast/dom/dataset-expected.txt: 15 * fast/dom/dataset-xhtml-expected.txt: 16 * fast/dom/script-tests/dataset-xhtml.js: 17 * fast/dom/script-tests/dataset.js: 18 1 19 2012-11-13 Elliott Sprehn <esprehn@chromium.org> 2 20 -
trunk/LayoutTests/fast/dom/Document/createElement-invalid-names-expected.txt
r103222 r134530 4 4 5 5 6 PASS document.createElement('0ascii') threw exception Error: I NVALID_CHARACTER_ERR: DOM Exception 5.7 PASS document.createElement('.Ascii') threw exception Error: I NVALID_CHARACTER_ERR: DOM Exception 5.8 PASS document.createElement('-Ascii') threw exception Error: I NVALID_CHARACTER_ERR: DOM Exception 5.9 PASS document.createElement(' ascii') threw exception Error: I NVALID_CHARACTER_ERR: DOM Exception 5.10 PASS document.createElement(' ascii') threw exception Error: I NVALID_CHARACTER_ERR: DOM Exception 5.11 PASS document.createElement('֑sc.ii') threw exception Error: I NVALID_CHARACTER_ERR: DOM Exception 5.12 PASS document.createElement('⃣scii') threw exception Error: I NVALID_CHARACTER_ERR: DOM Exception 5.13 PASS document.createElement('िascii') threw exception Error: I NVALID_CHARACTER_ERR: DOM Exception 5.14 PASS document.createElement('ʳascii') threw exception Error: I NVALID_CHARACTER_ERR: DOM Exception 5.15 PASS document.createElement('asc i') threw exception Error: I NVALID_CHARACTER_ERR: DOM Exception 5.16 PASS document.createElement('asc i') threw exception Error: I NVALID_CHARACTER_ERR: DOM Exception 5.17 PASS document.createElement('asciiⅦ') threw exception Error: I NVALID_CHARACTER_ERR: DOM Exception 5.6 PASS document.createElement('0ascii') threw exception Error: InvalidCharacterError: DOM Exception 5. 7 PASS document.createElement('.Ascii') threw exception Error: InvalidCharacterError: DOM Exception 5. 8 PASS document.createElement('-Ascii') threw exception Error: InvalidCharacterError: DOM Exception 5. 9 PASS document.createElement(' ascii') threw exception Error: InvalidCharacterError: DOM Exception 5. 10 PASS document.createElement(' ascii') threw exception Error: InvalidCharacterError: DOM Exception 5. 11 PASS document.createElement('֑sc.ii') threw exception Error: InvalidCharacterError: DOM Exception 5. 12 PASS document.createElement('⃣scii') threw exception Error: InvalidCharacterError: DOM Exception 5. 13 PASS document.createElement('िascii') threw exception Error: InvalidCharacterError: DOM Exception 5. 14 PASS document.createElement('ʳascii') threw exception Error: InvalidCharacterError: DOM Exception 5. 15 PASS document.createElement('asc i') threw exception Error: InvalidCharacterError: DOM Exception 5. 16 PASS document.createElement('asc i') threw exception Error: InvalidCharacterError: DOM Exception 5. 17 PASS document.createElement('asciiⅦ') threw exception Error: InvalidCharacterError: DOM Exception 5. 18 18 PASS successfullyParsed is true 19 19 -
trunk/LayoutTests/fast/dom/Document/createElement-invalid-names.html
r103222 r134530 27 27 28 28 for (var i in nameList) 29 shouldThrow("document.createElement('" + nameList[i] +"')", "'Error: I NVALID_CHARACTER_ERR: DOM Exception 5'");29 shouldThrow("document.createElement('" + nameList[i] +"')", "'Error: InvalidCharacterError: DOM Exception 5'"); 30 30 </script> 31 31 <script src="../../js/resources/js-test-post.js"></script> -
trunk/LayoutTests/fast/dom/Element/prefix-setter-exception-expected.txt
r105388 r134530 4 4 5 5 6 PASS prefixedElem.prefix = "." threw exception Error: I NVALID_CHARACTER_ERR: DOM Exception 5.6 PASS prefixedElem.prefix = "." threw exception Error: InvalidCharacterError: DOM Exception 5. 7 7 PASS prefixedElem.prefix is "before" 8 8 PASS prefixedElem.prefix = "x." is "x." 9 9 PASS prefixedElem.prefix is "x." 10 PASS prefixedElem.prefix = "0a" threw exception Error: I NVALID_CHARACTER_ERR: DOM Exception 5.10 PASS prefixedElem.prefix = "0a" threw exception Error: InvalidCharacterError: DOM Exception 5. 11 11 PASS prefixedElem.prefix is "before" 12 12 PASS prefixedElem.prefix = "a0" is "a0" … … 14 14 PASS prefixedElem.prefix = "_0" is "_0" 15 15 PASS prefixedElem.prefix is "_0" 16 PASS prefixedElem.prefix = "×" threw exception Error: I NVALID_CHARACTER_ERR: DOM Exception 5.16 PASS prefixedElem.prefix = "×" threw exception Error: InvalidCharacterError: DOM Exception 5. 17 17 PASS prefixedElem.prefix is "before" 18 PASS prefixedElem.prefix = "·" threw exception Error: I NVALID_CHARACTER_ERR: DOM Exception 5.18 PASS prefixedElem.prefix = "·" threw exception Error: InvalidCharacterError: DOM Exception 5. 19 19 PASS prefixedElem.prefix is "before" 20 20 PASS prefixedElem.prefix = "aa" is "aa" 21 21 PASS prefixedElem.prefix is "aa" 22 PASS prefixedElem.prefix = "\n" threw exception Error: I NVALID_CHARACTER_ERR: DOM Exception 5.22 PASS prefixedElem.prefix = "\n" threw exception Error: InvalidCharacterError: DOM Exception 5. 23 23 PASS prefixedElem.prefix is "before" 24 24 PASS successfullyParsed is true -
trunk/LayoutTests/fast/dom/Window/atob-btoa-expected.txt
r108729 r134530 19 19 PASS window.btoa("éé") is "6ek=" 20 20 PASS window.btoa("\u0080\u0081") is "gIE=" 21 PASS window.btoa("тест") threw exception Error: I NVALID_CHARACTER_ERR: DOM Exception 5.21 PASS window.btoa("тест") threw exception Error: InvalidCharacterError: DOM Exception 5. 22 22 PASS window.btoa is 0 23 23 PASS typeof window.btoa is "number" 24 24 PASS typeof window.atob is "function" 25 PASS window.atob() threw exception Error: I NVALID_CHARACTER_ERR: DOM Exception 5.25 PASS window.atob() threw exception Error: InvalidCharacterError: DOM Exception 5. 26 26 PASS window.atob("") is "" 27 27 PASS window.atob(null) is "" 28 PASS window.atob(undefined) threw exception Error: I NVALID_CHARACTER_ERR: DOM Exception 5.29 PASS window.atob(" YQ==") threw exception Error: I NVALID_CHARACTER_ERR: DOM Exception 5.30 PASS window.atob("YQ==\u000a") threw exception Error: I NVALID_CHARACTER_ERR: DOM Exception 5.28 PASS window.atob(undefined) threw exception Error: InvalidCharacterError: DOM Exception 5. 29 PASS window.atob(" YQ==") threw exception Error: InvalidCharacterError: DOM Exception 5. 30 PASS window.atob("YQ==\u000a") threw exception Error: InvalidCharacterError: DOM Exception 5. 31 31 PASS window.atob("6ek=") is "éé" 32 32 PASS window.atob("6ek") is "éé" 33 33 PASS window.atob("gIE=") is "" 34 PASS window.atob("тест") threw exception Error: I NVALID_CHARACTER_ERR: DOM Exception 5.35 PASS window.atob("z") threw exception Error: I NVALID_CHARACTER_ERR: DOM Exception 5.34 PASS window.atob("тест") threw exception Error: InvalidCharacterError: DOM Exception 5. 35 PASS window.atob("z") threw exception Error: InvalidCharacterError: DOM Exception 5. 36 36 PASS window.atob("zz") is "Ï" 37 37 PASS window.atob("zzz") is "Ï<" … … 41 41 PASS window.atob("zzz====") is "Ï<" 42 42 PASS window.atob("zzzz") is "Ï<ó" 43 PASS window.atob("zzzzz") threw exception Error: I NVALID_CHARACTER_ERR: DOM Exception 5.44 PASS window.atob("z=zz") threw exception Error: I NVALID_CHARACTER_ERR: DOM Exception 5.45 PASS window.atob("=") threw exception Error: I NVALID_CHARACTER_ERR: DOM Exception 5.46 PASS window.atob("==") threw exception Error: I NVALID_CHARACTER_ERR: DOM Exception 5.47 PASS window.atob("===") threw exception Error: I NVALID_CHARACTER_ERR: DOM Exception 5.48 PASS window.atob("====") threw exception Error: I NVALID_CHARACTER_ERR: DOM Exception 5.49 PASS window.atob("=====") threw exception Error: I NVALID_CHARACTER_ERR: DOM Exception 5.43 PASS window.atob("zzzzz") threw exception Error: InvalidCharacterError: DOM Exception 5. 44 PASS window.atob("z=zz") threw exception Error: InvalidCharacterError: DOM Exception 5. 45 PASS window.atob("=") threw exception Error: InvalidCharacterError: DOM Exception 5. 46 PASS window.atob("==") threw exception Error: InvalidCharacterError: DOM Exception 5. 47 PASS window.atob("===") threw exception Error: InvalidCharacterError: DOM Exception 5. 48 PASS window.atob("====") threw exception Error: InvalidCharacterError: DOM Exception 5. 49 PASS window.atob("=====") threw exception Error: InvalidCharacterError: DOM Exception 5. 50 50 PASS window.atob is 0 51 51 PASS typeof window.atob is "number" -
trunk/LayoutTests/fast/dom/dataset-expected.txt
r96893 r134530 29 29 30 30 PASS testSet('-foo', 'dummy') threw exception Error: SYNTAX_ERR: DOM Exception 12. 31 PASS testSet('foo ', 'dummy') threw exception Error: I NVALID_CHARACTER_ERR: DOM Exception 5.32 PASS testSet('foo豈', 'dummy') threw exception Error: I NVALID_CHARACTER_ERR: DOM Exception 5.31 PASS testSet('foo ', 'dummy') threw exception Error: InvalidCharacterError: DOM Exception 5. 32 PASS testSet('foo豈', 'dummy') threw exception Error: InvalidCharacterError: DOM Exception 5. 33 33 34 34 PASS testDelete('data-foo', 'foo') is true -
trunk/LayoutTests/fast/dom/dataset-xhtml-expected.txt
r96911 r134530 24 24 25 25 PASS testSet('-foo', 'dummy') threw exception Error: SYNTAX_ERR: DOM Exception 12. 26 PASS testSet('foo ', 'dummy') threw exception Error: I NVALID_CHARACTER_ERR: DOM Exception 5.27 PASS testSet('foo豈', 'dummy') threw exception Error: I NVALID_CHARACTER_ERR: DOM Exception 5.26 PASS testSet('foo ', 'dummy') threw exception Error: InvalidCharacterError: DOM Exception 5. 27 PASS testSet('foo豈', 'dummy') threw exception Error: InvalidCharacterError: DOM Exception 5. 28 28 29 29 PASS testDelete('data-foo', 'foo') is true -
trunk/LayoutTests/fast/dom/script-tests/dataset-xhtml.js
r98407 r134530 49 49 50 50 shouldThrow("testSet('-foo', 'dummy')", "'Error: SYNTAX_ERR: DOM Exception 12'"); 51 shouldThrow("testSet('foo\x20', 'dummy')", "'Error: I NVALID_CHARACTER_ERR: DOM Exception 5'");52 shouldThrow("testSet('foo\uF900', 'dummy')", "'Error: I NVALID_CHARACTER_ERR: DOM Exception 5'");51 shouldThrow("testSet('foo\x20', 'dummy')", "'Error: InvalidCharacterError: DOM Exception 5'"); 52 shouldThrow("testSet('foo\uF900', 'dummy')", "'Error: InvalidCharacterError: DOM Exception 5'"); 53 53 debug(""); 54 54 -
trunk/LayoutTests/fast/dom/script-tests/dataset.js
r98407 r134530 54 54 55 55 shouldThrow("testSet('-foo', 'dummy')", "'Error: SYNTAX_ERR: DOM Exception 12'"); 56 shouldThrow("testSet('foo\x20', 'dummy')", "'Error: I NVALID_CHARACTER_ERR: DOM Exception 5'");57 shouldThrow("testSet('foo\uF900', 'dummy')", "'Error: I NVALID_CHARACTER_ERR: DOM Exception 5'");56 shouldThrow("testSet('foo\x20', 'dummy')", "'Error: InvalidCharacterError: DOM Exception 5'"); 57 shouldThrow("testSet('foo\uF900', 'dummy')", "'Error: InvalidCharacterError: DOM Exception 5'"); 58 58 debug(""); 59 59 -
trunk/Source/WebCore/ChangeLog
r134529 r134530 1 2012-11-13 Erik Arvidsson <arv@chromium.org> 2 3 Update DOMException name: InvalidCharacterError 4 https://bugs.webkit.org/show_bug.cgi?id=102128 5 6 Reviewed by Darin Adler. 7 8 Patch 5 of 25 to update DOMException name to match the spec and Firefox. 9 10 Updated existing tests. 11 12 * dom/DOMCoreException.cpp: 13 1 14 2012-11-13 Joshua Bell <jsbell@chromium.org> 2 15 -
trunk/Source/WebCore/dom/DOMCoreException.cpp
r134435 r134530 40 40 { "HierarchyRequestError", "A Node was inserted somewhere it doesn't belong." }, 41 41 { "WRONG_DOCUMENT_ERR", "A Node was used in a different document than the one that created it (that doesn't support it)." }, 42 { "I NVALID_CHARACTER_ERR", "An invalid or illegal character was specified, such as in an XML name." },42 { "InvalidCharacterError", "An invalid or illegal character was specified, such as in an XML name." }, 43 43 { "NO_DATA_ALLOWED_ERR", "Data was specified for a Node which does not support data." }, 44 44 { "NO_MODIFICATION_ALLOWED_ERR", "An attempt was made to modify an object where modifications are not allowed." },
Note: See TracChangeset
for help on using the changeset viewer.