Changeset 134954 in webkit
- Timestamp:
- Nov 16, 2012 8:22:08 AM (11 years ago)
- Location:
- trunk
- Files:
-
- 22 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r134949 r134954 1 2012-11-16 Erik Arvidsson <arv@chromium.org> 2 3 Update DOMException name: TypeMismatchError 4 https://bugs.webkit.org/show_bug.cgi?id=102418 5 6 Reviewed by Kentaro Hara. 7 8 Updated tests and expectations. 9 10 * editing/selection/extend-expected.txt: 11 * fast/dom/Element/attr-param-typechecking-expected.txt: 12 * fast/dom/Geolocation/argument-types-expected.txt: 13 * fast/dom/Geolocation/not-enough-arguments-expected.txt: 14 * fast/dom/Geolocation/script-tests/argument-types.js: 15 (test): 16 * fast/dom/HTMLSelectElement/select-selectedIndex-expected.txt: 17 * fast/dom/HTMLSelectElement/select-selectedIndex-multiple-expected.txt: 18 * fast/js/select-options-add-expected.txt: 19 * fast/mediastream/RTCIceCandidate-expected.txt: 20 * fast/mediastream/RTCPeerConnection-expected.txt: 21 * fast/mediastream/RTCSessionDescription-expected.txt: 22 * platform/chromium/fast/dynamic/insertAdjacentElement-expected.txt: 23 * platform/efl/fast/dynamic/insertAdjacentElement-expected.txt: 24 * platform/gtk/fast/dynamic/insertAdjacentElement-expected.txt: 25 * platform/mac/fast/dynamic/insertAdjacentElement-expected.txt: 26 * platform/qt/fast/dynamic/insertAdjacentElement-expected.txt: 27 * security/crypto-random-values-types-expected.txt: 28 * svg/dom/SVGTransformList-expected.txt: 29 1 30 2012-11-16 Erik Arvidsson <arv@chromium.org> 2 31 -
trunk/LayoutTests/editing/selection/extend-expected.txt
r134613 r134954 5 5 Success: window.getSelection() is b. 6 6 Success: window.getSelection() is arbaz. 7 Success: s.extend() raised Error: T YPE_MISMATCH_ERR: DOM Exception 17.8 Success: s.extend(null, 0) raised Error: T YPE_MISMATCH_ERR: DOM Exception 17.7 Success: s.extend() raised Error: TypeMismatchError: DOM Exception 17. 8 Success: s.extend(null, 0) raised Error: TypeMismatchError: DOM Exception 17. -
trunk/LayoutTests/fast/dom/Element/attr-param-typechecking-expected.txt
r134464 r134954 4 4 5 5 6 PASS element.setAttributeNode("style"); threw exception Error: T YPE_MISMATCH_ERR: DOM Exception 17.7 PASS element.setAttributeNode(null); threw exception Error: T YPE_MISMATCH_ERR: DOM Exception 17.8 PASS element.setAttributeNode(undefined); threw exception Error: T YPE_MISMATCH_ERR: DOM Exception 17.9 PASS element.setAttributeNode(new Object); threw exception Error: T YPE_MISMATCH_ERR: DOM Exception 17.10 PASS element.removeAttributeNode("style"); threw exception Error: T YPE_MISMATCH_ERR: DOM Exception 17.11 PASS element.removeAttributeNode(null); threw exception Error: T YPE_MISMATCH_ERR: DOM Exception 17.12 PASS element.removeAttributeNode(undefined); threw exception Error: T YPE_MISMATCH_ERR: DOM Exception 17.13 PASS element.removeAttributeNode(new Object); threw exception Error: T YPE_MISMATCH_ERR: DOM Exception 17.14 PASS element.setAttributeNodeNS("style"); threw exception Error: T YPE_MISMATCH_ERR: DOM Exception 17.15 PASS element.setAttributeNodeNS(null); threw exception Error: T YPE_MISMATCH_ERR: DOM Exception 17.16 PASS element.setAttributeNodeNS(undefined); threw exception Error: T YPE_MISMATCH_ERR: DOM Exception 17.17 PASS element.setAttributeNodeNS(new Object); threw exception Error: T YPE_MISMATCH_ERR: DOM Exception 17.6 PASS element.setAttributeNode("style"); threw exception Error: TypeMismatchError: DOM Exception 17. 7 PASS element.setAttributeNode(null); threw exception Error: TypeMismatchError: DOM Exception 17. 8 PASS element.setAttributeNode(undefined); threw exception Error: TypeMismatchError: DOM Exception 17. 9 PASS element.setAttributeNode(new Object); threw exception Error: TypeMismatchError: DOM Exception 17. 10 PASS element.removeAttributeNode("style"); threw exception Error: TypeMismatchError: DOM Exception 17. 11 PASS element.removeAttributeNode(null); threw exception Error: TypeMismatchError: DOM Exception 17. 12 PASS element.removeAttributeNode(undefined); threw exception Error: TypeMismatchError: DOM Exception 17. 13 PASS element.removeAttributeNode(new Object); threw exception Error: TypeMismatchError: DOM Exception 17. 14 PASS element.setAttributeNodeNS("style"); threw exception Error: TypeMismatchError: DOM Exception 17. 15 PASS element.setAttributeNodeNS(null); threw exception Error: TypeMismatchError: DOM Exception 17. 16 PASS element.setAttributeNodeNS(undefined); threw exception Error: TypeMismatchError: DOM Exception 17. 17 PASS element.setAttributeNodeNS(new Object); threw exception Error: TypeMismatchError: DOM Exception 17. 18 18 PASS successfullyParsed is true 19 19 -
trunk/LayoutTests/fast/dom/Geolocation/argument-types-expected.txt
r134440 r134954 4 4 5 5 6 PASS navigator.geolocation.getCurrentPosition() threw exception Error: T YPE_MISMATCH_ERR: DOM Exception 17.7 PASS navigator.geolocation.getCurrentPosition(undefined) threw exception Error: T YPE_MISMATCH_ERR: DOM Exception 17.8 PASS navigator.geolocation.getCurrentPosition(null) threw exception Error: T YPE_MISMATCH_ERR: DOM Exception 17.9 PASS navigator.geolocation.getCurrentPosition({}) threw exception Error: T YPE_MISMATCH_ERR: DOM Exception 17.10 PASS navigator.geolocation.getCurrentPosition(objectThrowingException) threw exception Error: T YPE_MISMATCH_ERR: DOM Exception 17.6 PASS navigator.geolocation.getCurrentPosition() threw exception Error: TypeMismatchError: DOM Exception 17. 7 PASS navigator.geolocation.getCurrentPosition(undefined) threw exception Error: TypeMismatchError: DOM Exception 17. 8 PASS navigator.geolocation.getCurrentPosition(null) threw exception Error: TypeMismatchError: DOM Exception 17. 9 PASS navigator.geolocation.getCurrentPosition({}) threw exception Error: TypeMismatchError: DOM Exception 17. 10 PASS navigator.geolocation.getCurrentPosition(objectThrowingException) threw exception Error: TypeMismatchError: DOM Exception 17. 11 11 PASS navigator.geolocation.getCurrentPosition(emptyFunction) did not throw exception. 12 12 PASS navigator.geolocation.getCurrentPosition(Math.abs) did not throw exception. 13 13 PASS navigator.geolocation.getCurrentPosition(testRunner.setGeolocationPermission) did not throw exception. 14 PASS navigator.geolocation.getCurrentPosition(true) threw exception Error: T YPE_MISMATCH_ERR: DOM Exception 17.15 PASS navigator.geolocation.getCurrentPosition(42) threw exception Error: T YPE_MISMATCH_ERR: DOM Exception 17.16 PASS navigator.geolocation.getCurrentPosition(Infinity) threw exception Error: T YPE_MISMATCH_ERR: DOM Exception 17.17 PASS navigator.geolocation.getCurrentPosition(-Infinity) threw exception Error: T YPE_MISMATCH_ERR: DOM Exception 17.18 PASS navigator.geolocation.getCurrentPosition("string") threw exception Error: T YPE_MISMATCH_ERR: DOM Exception 17.14 PASS navigator.geolocation.getCurrentPosition(true) threw exception Error: TypeMismatchError: DOM Exception 17. 15 PASS navigator.geolocation.getCurrentPosition(42) threw exception Error: TypeMismatchError: DOM Exception 17. 16 PASS navigator.geolocation.getCurrentPosition(Infinity) threw exception Error: TypeMismatchError: DOM Exception 17. 17 PASS navigator.geolocation.getCurrentPosition(-Infinity) threw exception Error: TypeMismatchError: DOM Exception 17. 18 PASS navigator.geolocation.getCurrentPosition("string") threw exception Error: TypeMismatchError: DOM Exception 17. 19 19 PASS navigator.geolocation.getCurrentPosition(emptyFunction, undefined) did not throw exception. 20 20 PASS navigator.geolocation.getCurrentPosition(emptyFunction, null) did not throw exception. 21 PASS navigator.geolocation.getCurrentPosition(emptyFunction, {}) threw exception Error: T YPE_MISMATCH_ERR: DOM Exception 17.22 PASS navigator.geolocation.getCurrentPosition(emptyFunction, objectThrowingException) threw exception Error: T YPE_MISMATCH_ERR: DOM Exception 17.21 PASS navigator.geolocation.getCurrentPosition(emptyFunction, {}) threw exception Error: TypeMismatchError: DOM Exception 17. 22 PASS navigator.geolocation.getCurrentPosition(emptyFunction, objectThrowingException) threw exception Error: TypeMismatchError: DOM Exception 17. 23 23 PASS navigator.geolocation.getCurrentPosition(emptyFunction, emptyFunction) did not throw exception. 24 24 PASS navigator.geolocation.getCurrentPosition(emptyFunction, Math.abs) did not throw exception. 25 25 PASS navigator.geolocation.getCurrentPosition(emptyFunction, testRunner.setGeolocationPermission) did not throw exception. 26 PASS navigator.geolocation.getCurrentPosition(emptyFunction, true) threw exception Error: T YPE_MISMATCH_ERR: DOM Exception 17.27 PASS navigator.geolocation.getCurrentPosition(emptyFunction, 42) threw exception Error: T YPE_MISMATCH_ERR: DOM Exception 17.28 PASS navigator.geolocation.getCurrentPosition(emptyFunction, Infinity) threw exception Error: T YPE_MISMATCH_ERR: DOM Exception 17.29 PASS navigator.geolocation.getCurrentPosition(emptyFunction, -Infinity) threw exception Error: T YPE_MISMATCH_ERR: DOM Exception 17.30 PASS navigator.geolocation.getCurrentPosition(emptyFunction, "string") threw exception Error: T YPE_MISMATCH_ERR: DOM Exception 17.26 PASS navigator.geolocation.getCurrentPosition(emptyFunction, true) threw exception Error: TypeMismatchError: DOM Exception 17. 27 PASS navigator.geolocation.getCurrentPosition(emptyFunction, 42) threw exception Error: TypeMismatchError: DOM Exception 17. 28 PASS navigator.geolocation.getCurrentPosition(emptyFunction, Infinity) threw exception Error: TypeMismatchError: DOM Exception 17. 29 PASS navigator.geolocation.getCurrentPosition(emptyFunction, -Infinity) threw exception Error: TypeMismatchError: DOM Exception 17. 30 PASS navigator.geolocation.getCurrentPosition(emptyFunction, "string") threw exception Error: TypeMismatchError: DOM Exception 17. 31 31 PASS navigator.geolocation.getCurrentPosition(emptyFunction, undefined, undefined) did not throw exception. 32 32 PASS navigator.geolocation.getCurrentPosition(emptyFunction, undefined, null) did not throw exception. -
trunk/LayoutTests/fast/dom/Geolocation/not-enough-arguments-expected.txt
r134440 r134954 4 4 5 5 6 PASS window.navigator.geolocation.getCurrentPosition() threw exception Error: T YPE_MISMATCH_ERR: DOM Exception 17.7 PASS window.navigator.geolocation.watchPosition() threw exception Error: T YPE_MISMATCH_ERR: DOM Exception 17.6 PASS window.navigator.geolocation.getCurrentPosition() threw exception Error: TypeMismatchError: DOM Exception 17. 7 PASS window.navigator.geolocation.watchPosition() threw exception Error: TypeMismatchError: DOM Exception 17. 8 8 PASS window.navigator.geolocation.clearWatch() threw exception TypeError: Not enough arguments. 9 9 PASS successfullyParsed is true -
trunk/LayoutTests/fast/dom/Geolocation/script-tests/argument-types.js
r134440 r134954 16 16 shouldThrow(expression, '(function() { return "' + expectedException + '"; })();'); 17 17 else 18 shouldThrow(expression, '(function() { return "Error: T YPE_MISMATCH_ERR: DOM Exception 17"; })();');18 shouldThrow(expression, '(function() { return "Error: TypeMismatchError: DOM Exception 17"; })();'); 19 19 } else { 20 20 shouldNotThrow(expression); -
trunk/LayoutTests/fast/dom/HTMLSelectElement/select-selectedIndex-expected.txt
r134613 r134954 58 58 PASS mySelect.selectedIndex is -1 59 59 19) trying to set an element that's not an option: select element 60 PASS mySelect.options[10] = mySelect; threw exception Error: T YPE_MISMATCH_ERR: DOM Exception 17.60 PASS mySelect.options[10] = mySelect; threw exception Error: TypeMismatchError: DOM Exception 17. 61 61 PASS mySelect.options.length is 10 62 62 PASS mySelect.selectedIndex is -1 -
trunk/LayoutTests/fast/dom/HTMLSelectElement/select-selectedIndex-multiple-expected.txt
r134613 r134954 58 58 PASS mySelect.selectedIndex is 0 59 59 19) trying to set an element that's not an option: select element 60 PASS mySelect.options[10] = mySelect; threw exception Error: T YPE_MISMATCH_ERR: DOM Exception 17.60 PASS mySelect.options[10] = mySelect; threw exception Error: TypeMismatchError: DOM Exception 17. 61 61 PASS mySelect.options.length is 10 62 62 PASS mySelect.selectedIndex is 0 -
trunk/LayoutTests/fast/js/select-options-add-expected.txt
r134613 r134954 30 30 31 31 1.4 Add a non-Option element 32 PASS select1.options.add(option1) threw exception Error: T YPE_MISMATCH_ERR: DOM Exception 17.32 PASS select1.options.add(option1) threw exception Error: TypeMismatchError: DOM Exception 17. 33 33 PASS select1.options.length is 3 34 34 PASS select1.selectedIndex is 0 35 35 36 36 1.5 Add a non-element (string) 37 PASS select1.options.add(option1) threw exception Error: T YPE_MISMATCH_ERR: DOM Exception 17.37 PASS select1.options.add(option1) threw exception Error: TypeMismatchError: DOM Exception 17. 38 38 PASS select1.options.length is 3 39 39 PASS select1.selectedIndex is 0 40 40 41 41 1.6 Add a non-element (number) 42 PASS select1.options.add(option1) threw exception Error: T YPE_MISMATCH_ERR: DOM Exception 17.42 PASS select1.options.add(option1) threw exception Error: TypeMismatchError: DOM Exception 17. 43 43 PASS select1.options.length is 3 44 44 PASS select1.selectedIndex is 0 45 45 46 46 1.7 Add a non-element (boolean) 47 PASS select1.options.add(option1) threw exception Error: T YPE_MISMATCH_ERR: DOM Exception 17.47 PASS select1.options.add(option1) threw exception Error: TypeMismatchError: DOM Exception 17. 48 48 PASS select1.options.length is 3 49 49 PASS select1.selectedIndex is 0 50 50 51 51 1.8 Add undefined 52 PASS select1.options.add(option1) threw exception Error: T YPE_MISMATCH_ERR: DOM Exception 17.52 PASS select1.options.add(option1) threw exception Error: TypeMismatchError: DOM Exception 17. 53 53 PASS select1.options.length is 3 54 54 PASS select1.selectedIndex is 0 55 55 56 56 1.9 Add null 57 PASS select1.options.add(option1) threw exception Error: T YPE_MISMATCH_ERR: DOM Exception 17.57 PASS select1.options.add(option1) threw exception Error: TypeMismatchError: DOM Exception 17. 58 58 PASS select1.options.length is 3 59 59 PASS select1.selectedIndex is 0 60 60 61 61 1.10 Add negative infinity 62 PASS select1.options.add(option1) threw exception Error: T YPE_MISMATCH_ERR: DOM Exception 17.62 PASS select1.options.add(option1) threw exception Error: TypeMismatchError: DOM Exception 17. 63 63 PASS select1.options.length is 3 64 64 PASS select1.selectedIndex is 0 65 65 66 66 1.11 Add NaN 67 PASS select1.options.add(option1) threw exception Error: T YPE_MISMATCH_ERR: DOM Exception 17.67 PASS select1.options.add(option1) threw exception Error: TypeMismatchError: DOM Exception 17. 68 68 PASS select1.options.length is 3 69 69 PASS select1.selectedIndex is 0 70 70 71 71 1.12 Add positive infinity 72 PASS select1.options.add(option1) threw exception Error: T YPE_MISMATCH_ERR: DOM Exception 17.72 PASS select1.options.add(option1) threw exception Error: TypeMismatchError: DOM Exception 17. 73 73 PASS select1.options.length is 3 74 74 PASS select1.selectedIndex is 0 … … 164 164 165 165 2.9 Add an Option at index -Infinity 166 PASS select2.options.add(option2, -1/0) threw exception Error: T YPE_MISMATCH_ERR: DOM Exception 17.166 PASS select2.options.add(option2, -1/0) threw exception Error: TypeMismatchError: DOM Exception 17. 167 167 PASS select2.options.length is 7 168 168 PASS select2.selectedIndex is 1 169 169 170 170 2.10 Add an Option at index NaN 171 PASS select2.options.add(option2, 0/0) threw exception Error: T YPE_MISMATCH_ERR: DOM Exception 17.171 PASS select2.options.add(option2, 0/0) threw exception Error: TypeMismatchError: DOM Exception 17. 172 172 PASS select2.options.length is 7 173 173 PASS select2.selectedIndex is 1 174 174 175 175 2.11 Add an Option at index Infinity 176 PASS select2.options.add(option2, 1/0) threw exception Error: T YPE_MISMATCH_ERR: DOM Exception 17.176 PASS select2.options.add(option2, 1/0) threw exception Error: TypeMismatchError: DOM Exception 17. 177 177 PASS select2.options.length is 7 178 178 PASS select2.selectedIndex is 1 179 179 180 180 2.12 Add a non-Option element 181 PASS select2.options.add(option2, 1) threw exception Error: T YPE_MISMATCH_ERR: DOM Exception 17.181 PASS select2.options.add(option2, 1) threw exception Error: TypeMismatchError: DOM Exception 17. 182 182 PASS select2.options.length is 7 183 183 PASS select2.selectedIndex is 1 184 184 185 185 2.13 Add a non-element (string) 186 PASS select2.options.add(option2, 1) threw exception Error: T YPE_MISMATCH_ERR: DOM Exception 17.186 PASS select2.options.add(option2, 1) threw exception Error: TypeMismatchError: DOM Exception 17. 187 187 PASS select2.options.length is 7 188 188 PASS select2.selectedIndex is 1 189 189 190 190 2.14 Add a non-element (number) 191 PASS select2.options.add(option2, 1) threw exception Error: T YPE_MISMATCH_ERR: DOM Exception 17.191 PASS select2.options.add(option2, 1) threw exception Error: TypeMismatchError: DOM Exception 17. 192 192 PASS select2.options.length is 7 193 193 PASS select2.selectedIndex is 1 194 194 195 195 2.15 Add a non-element (boolean) 196 PASS select2.options.add(option2, 1) threw exception Error: T YPE_MISMATCH_ERR: DOM Exception 17.196 PASS select2.options.add(option2, 1) threw exception Error: TypeMismatchError: DOM Exception 17. 197 197 PASS select2.options.length is 7 198 198 PASS select2.selectedIndex is 1 199 199 200 200 2.16 Add undefined 201 PASS select2.options.add(option2, 1) threw exception Error: T YPE_MISMATCH_ERR: DOM Exception 17.201 PASS select2.options.add(option2, 1) threw exception Error: TypeMismatchError: DOM Exception 17. 202 202 PASS select2.options.length is 7 203 203 PASS select2.selectedIndex is 1 204 204 205 205 2.17 Add null 206 PASS select2.options.add(option2, 1) threw exception Error: T YPE_MISMATCH_ERR: DOM Exception 17.206 PASS select2.options.add(option2, 1) threw exception Error: TypeMismatchError: DOM Exception 17. 207 207 PASS select2.options.length is 7 208 208 PASS select2.selectedIndex is 1 209 209 210 210 2.18 Add negative infinity 211 PASS select2.options.add(option2, 1) threw exception Error: T YPE_MISMATCH_ERR: DOM Exception 17.211 PASS select2.options.add(option2, 1) threw exception Error: TypeMismatchError: DOM Exception 17. 212 212 PASS select2.options.length is 7 213 213 PASS select2.selectedIndex is 1 214 214 215 215 2.19 Add NaN 216 PASS select2.options.add(option2, 1) threw exception Error: T YPE_MISMATCH_ERR: DOM Exception 17.216 PASS select2.options.add(option2, 1) threw exception Error: TypeMismatchError: DOM Exception 17. 217 217 PASS select2.options.length is 7 218 218 PASS select2.selectedIndex is 1 219 219 220 220 2.20 Add positive infinity 221 PASS select2.options.add(option2, 1) threw exception Error: T YPE_MISMATCH_ERR: DOM Exception 17.221 PASS select2.options.add(option2, 1) threw exception Error: TypeMismatchError: DOM Exception 17. 222 222 PASS select2.options.length is 7 223 223 PASS select2.selectedIndex is 1 -
trunk/LayoutTests/fast/mediastream/RTCIceCandidate-expected.txt
r134440 r134954 13 13 PASS candidate.sdpMid is "bar" 14 14 PASS candidate.sdpMLineIndex is 6 15 PASS new RTCIceCandidate({}); threw exception Error: T YPE_MISMATCH_ERR: DOM Exception 17.15 PASS new RTCIceCandidate({}); threw exception Error: TypeMismatchError: DOM Exception 17. 16 16 PASS new RTCIceCandidate(5); threw exception TypeError: Not an object.. 17 17 PASS new RTCIceCandidate("foobar"); threw exception TypeError: Not an object.. -
trunk/LayoutTests/fast/mediastream/RTCPeerConnection-expected.txt
r134792 r134954 15 15 PASS new webkitRTCPeerConnection({iceServers:[{url:'turn:foo.com', credential:'x'}]}, null); did not throw exception. 16 16 PASS new webkitRTCPeerConnection({iceServers:[{url:'turn:foo.com', credential:'x'},{url:'stun:bar.com'}]}, null); did not throw exception. 17 PASS new webkitRTCPeerConnection({fooServers:[]}, null); threw exception Error: T YPE_MISMATCH_ERR: DOM Exception 17.18 PASS new webkitRTCPeerConnection({iceServers:true}, null); threw exception Error: T YPE_MISMATCH_ERR: DOM Exception 17.19 PASS new webkitRTCPeerConnection({iceServers:[1, 2, 3]}, null); threw exception Error: T YPE_MISMATCH_ERR: DOM Exception 17.20 PASS new webkitRTCPeerConnection({iceServers:[{}]}, null); threw exception Error: T YPE_MISMATCH_ERR: DOM Exception 17.21 PASS new webkitRTCPeerConnection({iceServers:[{url:'foo'}]}, null); threw exception Error: T YPE_MISMATCH_ERR: DOM Exception 17.17 PASS new webkitRTCPeerConnection({fooServers:[]}, null); threw exception Error: TypeMismatchError: DOM Exception 17. 18 PASS new webkitRTCPeerConnection({iceServers:true}, null); threw exception Error: TypeMismatchError: DOM Exception 17. 19 PASS new webkitRTCPeerConnection({iceServers:[1, 2, 3]}, null); threw exception Error: TypeMismatchError: DOM Exception 17. 20 PASS new webkitRTCPeerConnection({iceServers:[{}]}, null); threw exception Error: TypeMismatchError: DOM Exception 17. 21 PASS new webkitRTCPeerConnection({iceServers:[{url:'foo'}]}, null); threw exception Error: TypeMismatchError: DOM Exception 17. 22 22 PASS new webkitRTCPeerConnection(null, {mandatory:{valid_and_supported_1:1}}); did not throw exception. 23 23 PASS new webkitRTCPeerConnection(null, {mandatory:{valid_and_supported_1:1, valid_and_supported_2:1}}); did not throw exception. … … 29 29 PASS new webkitRTCPeerConnection(null, {mandatory:{valid_but_unsupported_1:1}}); threw exception Error: NotSupportedError: DOM Exception 9. 30 30 PASS new webkitRTCPeerConnection(null, {mandatory:{valid_but_unsupported_1:1, valid_and_supported_1:1}}); threw exception Error: NotSupportedError: DOM Exception 9. 31 PASS new webkitRTCPeerConnection(null, {optional:{valid_and_supported_1:0}}); threw exception Error: T YPE_MISMATCH_ERR: DOM Exception 17.32 PASS new webkitRTCPeerConnection(null, {optional:[{valid_and_supported_1:0,valid_and_supported_2:0}]}); threw exception Error: T YPE_MISMATCH_ERR: DOM Exception 17.31 PASS new webkitRTCPeerConnection(null, {optional:{valid_and_supported_1:0}}); threw exception Error: TypeMismatchError: DOM Exception 17. 32 PASS new webkitRTCPeerConnection(null, {optional:[{valid_and_supported_1:0,valid_and_supported_2:0}]}); threw exception Error: TypeMismatchError: DOM Exception 17. 33 33 PASS new webkitRTCPeerConnection(null, {optional:[{invalid:0}]}); threw exception Error: NotSupportedError: DOM Exception 9. 34 PASS new webkitRTCPeerConnection(null, {valid_and_supported_1:1}); threw exception Error: T YPE_MISMATCH_ERR: DOM Exception 17.35 PASS new webkitRTCPeerConnection(null, {valid_but_unsupported_1:1}); threw exception Error: T YPE_MISMATCH_ERR: DOM Exception 17.36 PASS new webkitRTCPeerConnection(null, {valid_and_supported_2:1, mandatory:{valid_and_supported_1:1}}); threw exception Error: T YPE_MISMATCH_ERR: DOM Exception 17.34 PASS new webkitRTCPeerConnection(null, {valid_and_supported_1:1}); threw exception Error: TypeMismatchError: DOM Exception 17. 35 PASS new webkitRTCPeerConnection(null, {valid_but_unsupported_1:1}); threw exception Error: TypeMismatchError: DOM Exception 17. 36 PASS new webkitRTCPeerConnection(null, {valid_and_supported_2:1, mandatory:{valid_and_supported_1:1}}); threw exception Error: TypeMismatchError: DOM Exception 17. 37 37 PASS successfullyParsed is true 38 38 -
trunk/LayoutTests/fast/mediastream/RTCSessionDescription-expected.txt
r134440 r134954 11 11 PASS sessionDescription.type is "offer" 12 12 PASS sessionDescription.sdp is "foobar" 13 PASS new RTCSessionDescription({}); threw exception Error: T YPE_MISMATCH_ERR: DOM Exception 17.13 PASS new RTCSessionDescription({}); threw exception Error: TypeMismatchError: DOM Exception 17. 14 14 PASS new RTCSessionDescription(5); threw exception TypeError: Not an object.. 15 15 PASS new RTCSessionDescription('foobar'); threw exception TypeError: Not an object.. 16 PASS new RTCSessionDescription({type:'foobar', sdp:'x'}); threw exception Error: T YPE_MISMATCH_ERR: DOM Exception 17.17 PASS new RTCSessionDescription({type:'offer', sdp:''}); threw exception Error: T YPE_MISMATCH_ERR: DOM Exception 17.16 PASS new RTCSessionDescription({type:'foobar', sdp:'x'}); threw exception Error: TypeMismatchError: DOM Exception 17. 17 PASS new RTCSessionDescription({type:'offer', sdp:''}); threw exception Error: TypeMismatchError: DOM Exception 17. 18 18 PASS new RTCSessionDescription({type:'offer', sdp:'x'}); did not throw exception. 19 19 PASS new RTCSessionDescription({type:'answer', sdp:'x'}); did not throw exception. -
trunk/LayoutTests/platform/chromium/fast/dynamic/insertAdjacentElement-expected.txt
r134792 r134954 1 1 Caught expected exception: Error: NotSupportedError: DOM Exception 9 2 Caught expected exception: Error: T YPE_MISMATCH_ERR: DOM Exception 172 Caught expected exception: Error: TypeMismatchError: DOM Exception 17 3 3 1 (black) 2 (green) 3 (green) 4 (black) 4 4 -
trunk/LayoutTests/platform/efl/fast/dynamic/insertAdjacentElement-expected.txt
r134792 r134954 1 1 Caught expected exception: Error: NotSupportedError: DOM Exception 9 2 Caught expected exception: Error: T YPE_MISMATCH_ERR: DOM Exception 172 Caught expected exception: Error: TypeMismatchError: DOM Exception 17 3 3 1 (black) 2 (green) 3 (green) 4 (black) 4 4 -
trunk/LayoutTests/platform/gtk/fast/dynamic/insertAdjacentElement-expected.txt
r134792 r134954 1 1 Caught expected exception: Error: NotSupportedError: DOM Exception 9 2 Caught expected exception: Error: T YPE_MISMATCH_ERR: DOM Exception 172 Caught expected exception: Error: TypeMismatchError: DOM Exception 17 3 3 1 (black) 2 (green) 3 (green) 4 (black) 4 4 -
trunk/LayoutTests/platform/mac/fast/dynamic/insertAdjacentElement-expected.txt
r134792 r134954 1 1 Caught expected exception: Error: NotSupportedError: DOM Exception 9 2 Caught expected exception: Error: T YPE_MISMATCH_ERR: DOM Exception 172 Caught expected exception: Error: TypeMismatchError: DOM Exception 17 3 3 1 (black) 2 (green) 3 (green) 4 (black) 4 4 -
trunk/LayoutTests/platform/qt/fast/dynamic/insertAdjacentElement-expected.txt
r134792 r134954 1 1 Caught expected exception: Error: NotSupportedError: DOM Exception 9 2 Caught expected exception: Error: T YPE_MISMATCH_ERR: DOM Exception 172 Caught expected exception: Error: TypeMismatchError: DOM Exception 17 3 3 1 (black) 2 (green) 3 (green) 4 (black) 4 4 -
trunk/LayoutTests/security/crypto-random-values-types-expected.txt
r134440 r134954 12 12 PASS crypto.getRandomValues(new Uint32Array(3)) is undefined. 13 13 PASS crypto.getRandomValues(new Int32Array(3)) is undefined. 14 PASS crypto.getRandomValues(new Float32Array(3)) threw exception Error: T YPE_MISMATCH_ERR: DOM Exception 17.14 PASS crypto.getRandomValues(new Float32Array(3)) threw exception Error: TypeMismatchError: DOM Exception 17. 15 15 PASS successfullyParsed is true 16 16 -
trunk/LayoutTests/svg/dom/SVGTransformList-expected.txt
r134440 r134954 12 12 PASS transform.createSVGTransformFromMatrix(1) threw exception TypeError: Type error. 13 13 PASS transform.createSVGTransformFromMatrix(true) threw exception TypeError: Type error. 14 PASS transform.createSVGTransformFromMatrix(undefined) threw exception Error: T YPE_MISMATCH_ERR: DOM Exception 17.15 PASS transform.createSVGTransformFromMatrix(null) threw exception Error: T YPE_MISMATCH_ERR: DOM Exception 17.14 PASS transform.createSVGTransformFromMatrix(undefined) threw exception Error: TypeMismatchError: DOM Exception 17. 15 PASS transform.createSVGTransformFromMatrix(null) threw exception Error: TypeMismatchError: DOM Exception 17. 16 16 PASS successfullyParsed is true 17 17 -
trunk/Source/WebCore/ChangeLog
r134952 r134954 1 2012-11-16 Erik Arvidsson <arv@chromium.org> 2 3 Update DOMException name: TypeMismatchError 4 https://bugs.webkit.org/show_bug.cgi?id=102418 5 6 Reviewed by Kentaro Hara. 7 8 Patch 17 of 25 to update DOMException name to match the spec and Firefox. 9 10 Updated existing tests. 11 12 * dom/DOMCoreException.cpp: 13 (WebCore): 14 * dom/ExceptionCode.h: 15 1 16 2012-11-16 Balazs Kelemen <kbalazs@webkit.org> 2 17 -
trunk/Source/WebCore/dom/DOMCoreException.cpp
r134949 r134954 52 52 { "InvalidAccessError", "A parameter or an operation was not supported by the underlying object." }, 53 53 { "ValidationError", "A call to a method such as insertBefore or removeChild would make the Node invalid with respect to \"partial validity\", this exception would be raised and the operation would not be done." }, 54 { "T YPE_MISMATCH_ERR", "The type of an object was incompatible with the expected type of the parameter associated to the object." },54 { "TypeMismatchError", "The type of an object was incompatible with the expected type of the parameter associated to the object." }, 55 55 { "SECURITY_ERR", "An attempt was made to break through the security policy of the user agent." }, 56 56 // FIXME: Couldn't find a description in the HTML/DOM specifications for NETWORK_ERR, ABORT_ERR, URL_MISMATCH_ERR, and QUOTA_EXCEEDED_ERR -
trunk/Source/WebCore/dom/ExceptionCode.h
r134882 r134954 55 55 // Introduced in DOM Level 3: 56 56 VALIDATION_ERR = 16, // Historical 57 TYPE_MISMATCH_ERR = 17, 57 TYPE_MISMATCH_ERR = 17, // Historical; use TypeError instead 58 58 59 59 // XMLHttpRequest extension:
Note: See TracChangeset
for help on using the changeset viewer.