Changeset 134954 in webkit


Ignore:
Timestamp:
Nov 16, 2012 8:22:08 AM (11 years ago)
Author:
arv@chromium.org
Message:

Update DOMException name: TypeMismatchError
https://bugs.webkit.org/show_bug.cgi?id=102418

Reviewed by Kentaro Hara.

Source/WebCore:

Patch 17 of 25 to update DOMException name to match the spec and Firefox.

Updated existing tests.

  • dom/DOMCoreException.cpp:

(WebCore):

  • dom/ExceptionCode.h:

LayoutTests:

Updated tests and expectations.

  • editing/selection/extend-expected.txt:
  • fast/dom/Element/attr-param-typechecking-expected.txt:
  • fast/dom/Geolocation/argument-types-expected.txt:
  • fast/dom/Geolocation/not-enough-arguments-expected.txt:
  • fast/dom/Geolocation/script-tests/argument-types.js:

(test):

  • fast/dom/HTMLSelectElement/select-selectedIndex-expected.txt:
  • fast/dom/HTMLSelectElement/select-selectedIndex-multiple-expected.txt:
  • fast/js/select-options-add-expected.txt:
  • fast/mediastream/RTCIceCandidate-expected.txt:
  • fast/mediastream/RTCPeerConnection-expected.txt:
  • fast/mediastream/RTCSessionDescription-expected.txt:
  • platform/chromium/fast/dynamic/insertAdjacentElement-expected.txt:
  • platform/efl/fast/dynamic/insertAdjacentElement-expected.txt:
  • platform/gtk/fast/dynamic/insertAdjacentElement-expected.txt:
  • platform/mac/fast/dynamic/insertAdjacentElement-expected.txt:
  • platform/qt/fast/dynamic/insertAdjacentElement-expected.txt:
  • security/crypto-random-values-types-expected.txt:
  • svg/dom/SVGTransformList-expected.txt:
Location:
trunk
Files:
22 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r134949 r134954  
     12012-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
    1302012-11-16  Erik Arvidsson  <arv@chromium.org>
    231
  • trunk/LayoutTests/editing/selection/extend-expected.txt

    r134613 r134954  
    55Success: window.getSelection() is b.
    66Success: window.getSelection() is arbaz.
    7 Success: s.extend() raised Error: TYPE_MISMATCH_ERR: DOM Exception 17.
    8 Success: s.extend(null, 0) raised Error: TYPE_MISMATCH_ERR: DOM Exception 17.
     7Success: s.extend() raised Error: TypeMismatchError: DOM Exception 17.
     8Success: s.extend(null, 0) raised Error: TypeMismatchError: DOM Exception 17.
  • trunk/LayoutTests/fast/dom/Element/attr-param-typechecking-expected.txt

    r134464 r134954  
    44
    55
    6 PASS element.setAttributeNode("style"); threw exception Error: TYPE_MISMATCH_ERR: DOM Exception 17.
    7 PASS element.setAttributeNode(null); threw exception Error: TYPE_MISMATCH_ERR: DOM Exception 17.
    8 PASS element.setAttributeNode(undefined); threw exception Error: TYPE_MISMATCH_ERR: DOM Exception 17.
    9 PASS element.setAttributeNode(new Object); threw exception Error: TYPE_MISMATCH_ERR: DOM Exception 17.
    10 PASS element.removeAttributeNode("style"); threw exception Error: TYPE_MISMATCH_ERR: DOM Exception 17.
    11 PASS element.removeAttributeNode(null); threw exception Error: TYPE_MISMATCH_ERR: DOM Exception 17.
    12 PASS element.removeAttributeNode(undefined); threw exception Error: TYPE_MISMATCH_ERR: DOM Exception 17.
    13 PASS element.removeAttributeNode(new Object); threw exception Error: TYPE_MISMATCH_ERR: DOM Exception 17.
    14 PASS element.setAttributeNodeNS("style"); threw exception Error: TYPE_MISMATCH_ERR: DOM Exception 17.
    15 PASS element.setAttributeNodeNS(null); threw exception Error: TYPE_MISMATCH_ERR: DOM Exception 17.
    16 PASS element.setAttributeNodeNS(undefined); threw exception Error: TYPE_MISMATCH_ERR: DOM Exception 17.
    17 PASS element.setAttributeNodeNS(new Object); threw exception Error: TYPE_MISMATCH_ERR: DOM Exception 17.
     6PASS element.setAttributeNode("style"); threw exception Error: TypeMismatchError: DOM Exception 17.
     7PASS element.setAttributeNode(null); threw exception Error: TypeMismatchError: DOM Exception 17.
     8PASS element.setAttributeNode(undefined); threw exception Error: TypeMismatchError: DOM Exception 17.
     9PASS element.setAttributeNode(new Object); threw exception Error: TypeMismatchError: DOM Exception 17.
     10PASS element.removeAttributeNode("style"); threw exception Error: TypeMismatchError: DOM Exception 17.
     11PASS element.removeAttributeNode(null); threw exception Error: TypeMismatchError: DOM Exception 17.
     12PASS element.removeAttributeNode(undefined); threw exception Error: TypeMismatchError: DOM Exception 17.
     13PASS element.removeAttributeNode(new Object); threw exception Error: TypeMismatchError: DOM Exception 17.
     14PASS element.setAttributeNodeNS("style"); threw exception Error: TypeMismatchError: DOM Exception 17.
     15PASS element.setAttributeNodeNS(null); threw exception Error: TypeMismatchError: DOM Exception 17.
     16PASS element.setAttributeNodeNS(undefined); threw exception Error: TypeMismatchError: DOM Exception 17.
     17PASS element.setAttributeNodeNS(new Object); threw exception Error: TypeMismatchError: DOM Exception 17.
    1818PASS successfullyParsed is true
    1919
  • trunk/LayoutTests/fast/dom/Geolocation/argument-types-expected.txt

    r134440 r134954  
    44
    55
    6 PASS navigator.geolocation.getCurrentPosition() threw exception Error: TYPE_MISMATCH_ERR: DOM Exception 17.
    7 PASS navigator.geolocation.getCurrentPosition(undefined) threw exception Error: TYPE_MISMATCH_ERR: DOM Exception 17.
    8 PASS navigator.geolocation.getCurrentPosition(null) threw exception Error: TYPE_MISMATCH_ERR: DOM Exception 17.
    9 PASS navigator.geolocation.getCurrentPosition({}) threw exception Error: TYPE_MISMATCH_ERR: DOM Exception 17.
    10 PASS navigator.geolocation.getCurrentPosition(objectThrowingException) threw exception Error: TYPE_MISMATCH_ERR: DOM Exception 17.
     6PASS navigator.geolocation.getCurrentPosition() threw exception Error: TypeMismatchError: DOM Exception 17.
     7PASS navigator.geolocation.getCurrentPosition(undefined) threw exception Error: TypeMismatchError: DOM Exception 17.
     8PASS navigator.geolocation.getCurrentPosition(null) threw exception Error: TypeMismatchError: DOM Exception 17.
     9PASS navigator.geolocation.getCurrentPosition({}) threw exception Error: TypeMismatchError: DOM Exception 17.
     10PASS navigator.geolocation.getCurrentPosition(objectThrowingException) threw exception Error: TypeMismatchError: DOM Exception 17.
    1111PASS navigator.geolocation.getCurrentPosition(emptyFunction) did not throw exception.
    1212PASS navigator.geolocation.getCurrentPosition(Math.abs) did not throw exception.
    1313PASS navigator.geolocation.getCurrentPosition(testRunner.setGeolocationPermission) did not throw exception.
    14 PASS navigator.geolocation.getCurrentPosition(true) threw exception Error: TYPE_MISMATCH_ERR: DOM Exception 17.
    15 PASS navigator.geolocation.getCurrentPosition(42) threw exception Error: TYPE_MISMATCH_ERR: DOM Exception 17.
    16 PASS navigator.geolocation.getCurrentPosition(Infinity) threw exception Error: TYPE_MISMATCH_ERR: DOM Exception 17.
    17 PASS navigator.geolocation.getCurrentPosition(-Infinity) threw exception Error: TYPE_MISMATCH_ERR: DOM Exception 17.
    18 PASS navigator.geolocation.getCurrentPosition("string") threw exception Error: TYPE_MISMATCH_ERR: DOM Exception 17.
     14PASS navigator.geolocation.getCurrentPosition(true) threw exception Error: TypeMismatchError: DOM Exception 17.
     15PASS navigator.geolocation.getCurrentPosition(42) threw exception Error: TypeMismatchError: DOM Exception 17.
     16PASS navigator.geolocation.getCurrentPosition(Infinity) threw exception Error: TypeMismatchError: DOM Exception 17.
     17PASS navigator.geolocation.getCurrentPosition(-Infinity) threw exception Error: TypeMismatchError: DOM Exception 17.
     18PASS navigator.geolocation.getCurrentPosition("string") threw exception Error: TypeMismatchError: DOM Exception 17.
    1919PASS navigator.geolocation.getCurrentPosition(emptyFunction, undefined) did not throw exception.
    2020PASS navigator.geolocation.getCurrentPosition(emptyFunction, null) did not throw exception.
    21 PASS navigator.geolocation.getCurrentPosition(emptyFunction, {}) threw exception Error: TYPE_MISMATCH_ERR: DOM Exception 17.
    22 PASS navigator.geolocation.getCurrentPosition(emptyFunction, objectThrowingException) threw exception Error: TYPE_MISMATCH_ERR: DOM Exception 17.
     21PASS navigator.geolocation.getCurrentPosition(emptyFunction, {}) threw exception Error: TypeMismatchError: DOM Exception 17.
     22PASS navigator.geolocation.getCurrentPosition(emptyFunction, objectThrowingException) threw exception Error: TypeMismatchError: DOM Exception 17.
    2323PASS navigator.geolocation.getCurrentPosition(emptyFunction, emptyFunction) did not throw exception.
    2424PASS navigator.geolocation.getCurrentPosition(emptyFunction, Math.abs) did not throw exception.
    2525PASS navigator.geolocation.getCurrentPosition(emptyFunction, testRunner.setGeolocationPermission) did not throw exception.
    26 PASS navigator.geolocation.getCurrentPosition(emptyFunction, true) threw exception Error: TYPE_MISMATCH_ERR: DOM Exception 17.
    27 PASS navigator.geolocation.getCurrentPosition(emptyFunction, 42) threw exception Error: TYPE_MISMATCH_ERR: DOM Exception 17.
    28 PASS navigator.geolocation.getCurrentPosition(emptyFunction, Infinity) threw exception Error: TYPE_MISMATCH_ERR: DOM Exception 17.
    29 PASS navigator.geolocation.getCurrentPosition(emptyFunction, -Infinity) threw exception Error: TYPE_MISMATCH_ERR: DOM Exception 17.
    30 PASS navigator.geolocation.getCurrentPosition(emptyFunction, "string") threw exception Error: TYPE_MISMATCH_ERR: DOM Exception 17.
     26PASS navigator.geolocation.getCurrentPosition(emptyFunction, true) threw exception Error: TypeMismatchError: DOM Exception 17.
     27PASS navigator.geolocation.getCurrentPosition(emptyFunction, 42) threw exception Error: TypeMismatchError: DOM Exception 17.
     28PASS navigator.geolocation.getCurrentPosition(emptyFunction, Infinity) threw exception Error: TypeMismatchError: DOM Exception 17.
     29PASS navigator.geolocation.getCurrentPosition(emptyFunction, -Infinity) threw exception Error: TypeMismatchError: DOM Exception 17.
     30PASS navigator.geolocation.getCurrentPosition(emptyFunction, "string") threw exception Error: TypeMismatchError: DOM Exception 17.
    3131PASS navigator.geolocation.getCurrentPosition(emptyFunction, undefined, undefined) did not throw exception.
    3232PASS navigator.geolocation.getCurrentPosition(emptyFunction, undefined, null) did not throw exception.
  • trunk/LayoutTests/fast/dom/Geolocation/not-enough-arguments-expected.txt

    r134440 r134954  
    44
    55
    6 PASS window.navigator.geolocation.getCurrentPosition() threw exception Error: TYPE_MISMATCH_ERR: DOM Exception 17.
    7 PASS window.navigator.geolocation.watchPosition() threw exception Error: TYPE_MISMATCH_ERR: DOM Exception 17.
     6PASS window.navigator.geolocation.getCurrentPosition() threw exception Error: TypeMismatchError: DOM Exception 17.
     7PASS window.navigator.geolocation.watchPosition() threw exception Error: TypeMismatchError: DOM Exception 17.
    88PASS window.navigator.geolocation.clearWatch() threw exception TypeError: Not enough arguments.
    99PASS successfullyParsed is true
  • trunk/LayoutTests/fast/dom/Geolocation/script-tests/argument-types.js

    r134440 r134954  
    1616            shouldThrow(expression, '(function() { return "' + expectedException + '"; })();');
    1717        else
    18             shouldThrow(expression, '(function() { return "Error: TYPE_MISMATCH_ERR: DOM Exception 17"; })();');
     18            shouldThrow(expression, '(function() { return "Error: TypeMismatchError: DOM Exception 17"; })();');
    1919    } else {
    2020        shouldNotThrow(expression);
  • trunk/LayoutTests/fast/dom/HTMLSelectElement/select-selectedIndex-expected.txt

    r134613 r134954  
    5858PASS mySelect.selectedIndex is -1
    595919) trying to set an element that's not an option: select element
    60 PASS mySelect.options[10] = mySelect; threw exception Error: TYPE_MISMATCH_ERR: DOM Exception 17.
     60PASS mySelect.options[10] = mySelect; threw exception Error: TypeMismatchError: DOM Exception 17.
    6161PASS mySelect.options.length is 10
    6262PASS mySelect.selectedIndex is -1
  • trunk/LayoutTests/fast/dom/HTMLSelectElement/select-selectedIndex-multiple-expected.txt

    r134613 r134954  
    5858PASS mySelect.selectedIndex is 0
    595919) trying to set an element that's not an option: select element
    60 PASS mySelect.options[10] = mySelect; threw exception Error: TYPE_MISMATCH_ERR: DOM Exception 17.
     60PASS mySelect.options[10] = mySelect; threw exception Error: TypeMismatchError: DOM Exception 17.
    6161PASS mySelect.options.length is 10
    6262PASS mySelect.selectedIndex is 0
  • trunk/LayoutTests/fast/js/select-options-add-expected.txt

    r134613 r134954  
    3030
    31311.4 Add a non-Option element
    32 PASS select1.options.add(option1) threw exception Error: TYPE_MISMATCH_ERR: DOM Exception 17.
     32PASS select1.options.add(option1) threw exception Error: TypeMismatchError: DOM Exception 17.
    3333PASS select1.options.length is 3
    3434PASS select1.selectedIndex is 0
    3535
    36361.5 Add a non-element (string)
    37 PASS select1.options.add(option1) threw exception Error: TYPE_MISMATCH_ERR: DOM Exception 17.
     37PASS select1.options.add(option1) threw exception Error: TypeMismatchError: DOM Exception 17.
    3838PASS select1.options.length is 3
    3939PASS select1.selectedIndex is 0
    4040
    41411.6 Add a non-element (number)
    42 PASS select1.options.add(option1) threw exception Error: TYPE_MISMATCH_ERR: DOM Exception 17.
     42PASS select1.options.add(option1) threw exception Error: TypeMismatchError: DOM Exception 17.
    4343PASS select1.options.length is 3
    4444PASS select1.selectedIndex is 0
    4545
    46461.7 Add a non-element (boolean)
    47 PASS select1.options.add(option1) threw exception Error: TYPE_MISMATCH_ERR: DOM Exception 17.
     47PASS select1.options.add(option1) threw exception Error: TypeMismatchError: DOM Exception 17.
    4848PASS select1.options.length is 3
    4949PASS select1.selectedIndex is 0
    5050
    51511.8 Add undefined
    52 PASS select1.options.add(option1) threw exception Error: TYPE_MISMATCH_ERR: DOM Exception 17.
     52PASS select1.options.add(option1) threw exception Error: TypeMismatchError: DOM Exception 17.
    5353PASS select1.options.length is 3
    5454PASS select1.selectedIndex is 0
    5555
    56561.9 Add null
    57 PASS select1.options.add(option1) threw exception Error: TYPE_MISMATCH_ERR: DOM Exception 17.
     57PASS select1.options.add(option1) threw exception Error: TypeMismatchError: DOM Exception 17.
    5858PASS select1.options.length is 3
    5959PASS select1.selectedIndex is 0
    6060
    61611.10 Add negative infinity
    62 PASS select1.options.add(option1) threw exception Error: TYPE_MISMATCH_ERR: DOM Exception 17.
     62PASS select1.options.add(option1) threw exception Error: TypeMismatchError: DOM Exception 17.
    6363PASS select1.options.length is 3
    6464PASS select1.selectedIndex is 0
    6565
    66661.11 Add NaN
    67 PASS select1.options.add(option1) threw exception Error: TYPE_MISMATCH_ERR: DOM Exception 17.
     67PASS select1.options.add(option1) threw exception Error: TypeMismatchError: DOM Exception 17.
    6868PASS select1.options.length is 3
    6969PASS select1.selectedIndex is 0
    7070
    71711.12 Add positive infinity
    72 PASS select1.options.add(option1) threw exception Error: TYPE_MISMATCH_ERR: DOM Exception 17.
     72PASS select1.options.add(option1) threw exception Error: TypeMismatchError: DOM Exception 17.
    7373PASS select1.options.length is 3
    7474PASS select1.selectedIndex is 0
     
    164164
    1651652.9 Add an Option at index -Infinity
    166 PASS select2.options.add(option2, -1/0) threw exception Error: TYPE_MISMATCH_ERR: DOM Exception 17.
     166PASS select2.options.add(option2, -1/0) threw exception Error: TypeMismatchError: DOM Exception 17.
    167167PASS select2.options.length is 7
    168168PASS select2.selectedIndex is 1
    169169
    1701702.10 Add an Option at index NaN
    171 PASS select2.options.add(option2, 0/0) threw exception Error: TYPE_MISMATCH_ERR: DOM Exception 17.
     171PASS select2.options.add(option2, 0/0) threw exception Error: TypeMismatchError: DOM Exception 17.
    172172PASS select2.options.length is 7
    173173PASS select2.selectedIndex is 1
    174174
    1751752.11 Add an Option at index Infinity
    176 PASS select2.options.add(option2, 1/0) threw exception Error: TYPE_MISMATCH_ERR: DOM Exception 17.
     176PASS select2.options.add(option2, 1/0) threw exception Error: TypeMismatchError: DOM Exception 17.
    177177PASS select2.options.length is 7
    178178PASS select2.selectedIndex is 1
    179179
    1801802.12 Add a non-Option element
    181 PASS select2.options.add(option2, 1) threw exception Error: TYPE_MISMATCH_ERR: DOM Exception 17.
     181PASS select2.options.add(option2, 1) threw exception Error: TypeMismatchError: DOM Exception 17.
    182182PASS select2.options.length is 7
    183183PASS select2.selectedIndex is 1
    184184
    1851852.13 Add a non-element (string)
    186 PASS select2.options.add(option2, 1) threw exception Error: TYPE_MISMATCH_ERR: DOM Exception 17.
     186PASS select2.options.add(option2, 1) threw exception Error: TypeMismatchError: DOM Exception 17.
    187187PASS select2.options.length is 7
    188188PASS select2.selectedIndex is 1
    189189
    1901902.14 Add a non-element (number)
    191 PASS select2.options.add(option2, 1) threw exception Error: TYPE_MISMATCH_ERR: DOM Exception 17.
     191PASS select2.options.add(option2, 1) threw exception Error: TypeMismatchError: DOM Exception 17.
    192192PASS select2.options.length is 7
    193193PASS select2.selectedIndex is 1
    194194
    1951952.15 Add a non-element (boolean)
    196 PASS select2.options.add(option2, 1) threw exception Error: TYPE_MISMATCH_ERR: DOM Exception 17.
     196PASS select2.options.add(option2, 1) threw exception Error: TypeMismatchError: DOM Exception 17.
    197197PASS select2.options.length is 7
    198198PASS select2.selectedIndex is 1
    199199
    2002002.16 Add undefined
    201 PASS select2.options.add(option2, 1) threw exception Error: TYPE_MISMATCH_ERR: DOM Exception 17.
     201PASS select2.options.add(option2, 1) threw exception Error: TypeMismatchError: DOM Exception 17.
    202202PASS select2.options.length is 7
    203203PASS select2.selectedIndex is 1
    204204
    2052052.17 Add null
    206 PASS select2.options.add(option2, 1) threw exception Error: TYPE_MISMATCH_ERR: DOM Exception 17.
     206PASS select2.options.add(option2, 1) threw exception Error: TypeMismatchError: DOM Exception 17.
    207207PASS select2.options.length is 7
    208208PASS select2.selectedIndex is 1
    209209
    2102102.18 Add negative infinity
    211 PASS select2.options.add(option2, 1) threw exception Error: TYPE_MISMATCH_ERR: DOM Exception 17.
     211PASS select2.options.add(option2, 1) threw exception Error: TypeMismatchError: DOM Exception 17.
    212212PASS select2.options.length is 7
    213213PASS select2.selectedIndex is 1
    214214
    2152152.19 Add NaN
    216 PASS select2.options.add(option2, 1) threw exception Error: TYPE_MISMATCH_ERR: DOM Exception 17.
     216PASS select2.options.add(option2, 1) threw exception Error: TypeMismatchError: DOM Exception 17.
    217217PASS select2.options.length is 7
    218218PASS select2.selectedIndex is 1
    219219
    2202202.20 Add positive infinity
    221 PASS select2.options.add(option2, 1) threw exception Error: TYPE_MISMATCH_ERR: DOM Exception 17.
     221PASS select2.options.add(option2, 1) threw exception Error: TypeMismatchError: DOM Exception 17.
    222222PASS select2.options.length is 7
    223223PASS select2.selectedIndex is 1
  • trunk/LayoutTests/fast/mediastream/RTCIceCandidate-expected.txt

    r134440 r134954  
    1313PASS candidate.sdpMid is "bar"
    1414PASS candidate.sdpMLineIndex is 6
    15 PASS new RTCIceCandidate({}); threw exception Error: TYPE_MISMATCH_ERR: DOM Exception 17.
     15PASS new RTCIceCandidate({}); threw exception Error: TypeMismatchError: DOM Exception 17.
    1616PASS new RTCIceCandidate(5); threw exception TypeError: Not an object..
    1717PASS new RTCIceCandidate("foobar"); threw exception TypeError: Not an object..
  • trunk/LayoutTests/fast/mediastream/RTCPeerConnection-expected.txt

    r134792 r134954  
    1515PASS new webkitRTCPeerConnection({iceServers:[{url:'turn:foo.com', credential:'x'}]}, null); did not throw exception.
    1616PASS 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: TYPE_MISMATCH_ERR: DOM Exception 17.
    18 PASS new webkitRTCPeerConnection({iceServers:true}, null); threw exception Error: TYPE_MISMATCH_ERR: DOM Exception 17.
    19 PASS new webkitRTCPeerConnection({iceServers:[1, 2, 3]}, null); threw exception Error: TYPE_MISMATCH_ERR: DOM Exception 17.
    20 PASS new webkitRTCPeerConnection({iceServers:[{}]}, null); threw exception Error: TYPE_MISMATCH_ERR: DOM Exception 17.
    21 PASS new webkitRTCPeerConnection({iceServers:[{url:'foo'}]}, null); threw exception Error: TYPE_MISMATCH_ERR: DOM Exception 17.
     17PASS new webkitRTCPeerConnection({fooServers:[]}, null); threw exception Error: TypeMismatchError: DOM Exception 17.
     18PASS new webkitRTCPeerConnection({iceServers:true}, null); threw exception Error: TypeMismatchError: DOM Exception 17.
     19PASS new webkitRTCPeerConnection({iceServers:[1, 2, 3]}, null); threw exception Error: TypeMismatchError: DOM Exception 17.
     20PASS new webkitRTCPeerConnection({iceServers:[{}]}, null); threw exception Error: TypeMismatchError: DOM Exception 17.
     21PASS new webkitRTCPeerConnection({iceServers:[{url:'foo'}]}, null); threw exception Error: TypeMismatchError: DOM Exception 17.
    2222PASS new webkitRTCPeerConnection(null, {mandatory:{valid_and_supported_1:1}}); did not throw exception.
    2323PASS new webkitRTCPeerConnection(null, {mandatory:{valid_and_supported_1:1, valid_and_supported_2:1}}); did not throw exception.
     
    2929PASS new webkitRTCPeerConnection(null, {mandatory:{valid_but_unsupported_1:1}}); threw exception Error: NotSupportedError: DOM Exception 9.
    3030PASS 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: TYPE_MISMATCH_ERR: DOM Exception 17.
    32 PASS new webkitRTCPeerConnection(null, {optional:[{valid_and_supported_1:0,valid_and_supported_2:0}]}); threw exception Error: TYPE_MISMATCH_ERR: DOM Exception 17.
     31PASS new webkitRTCPeerConnection(null, {optional:{valid_and_supported_1:0}}); threw exception Error: TypeMismatchError: DOM Exception 17.
     32PASS new webkitRTCPeerConnection(null, {optional:[{valid_and_supported_1:0,valid_and_supported_2:0}]}); threw exception Error: TypeMismatchError: DOM Exception 17.
    3333PASS 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: TYPE_MISMATCH_ERR: DOM Exception 17.
    35 PASS new webkitRTCPeerConnection(null, {valid_but_unsupported_1:1}); threw exception Error: TYPE_MISMATCH_ERR: DOM Exception 17.
    36 PASS new webkitRTCPeerConnection(null, {valid_and_supported_2:1, mandatory:{valid_and_supported_1:1}}); threw exception Error: TYPE_MISMATCH_ERR: DOM Exception 17.
     34PASS new webkitRTCPeerConnection(null, {valid_and_supported_1:1}); threw exception Error: TypeMismatchError: DOM Exception 17.
     35PASS new webkitRTCPeerConnection(null, {valid_but_unsupported_1:1}); threw exception Error: TypeMismatchError: DOM Exception 17.
     36PASS new webkitRTCPeerConnection(null, {valid_and_supported_2:1, mandatory:{valid_and_supported_1:1}}); threw exception Error: TypeMismatchError: DOM Exception 17.
    3737PASS successfullyParsed is true
    3838
  • trunk/LayoutTests/fast/mediastream/RTCSessionDescription-expected.txt

    r134440 r134954  
    1111PASS sessionDescription.type is "offer"
    1212PASS sessionDescription.sdp is "foobar"
    13 PASS new RTCSessionDescription({}); threw exception Error: TYPE_MISMATCH_ERR: DOM Exception 17.
     13PASS new RTCSessionDescription({}); threw exception Error: TypeMismatchError: DOM Exception 17.
    1414PASS new RTCSessionDescription(5); threw exception TypeError: Not an object..
    1515PASS new RTCSessionDescription('foobar'); threw exception TypeError: Not an object..
    16 PASS new RTCSessionDescription({type:'foobar', sdp:'x'}); threw exception Error: TYPE_MISMATCH_ERR: DOM Exception 17.
    17 PASS new RTCSessionDescription({type:'offer', sdp:''}); threw exception Error: TYPE_MISMATCH_ERR: DOM Exception 17.
     16PASS new RTCSessionDescription({type:'foobar', sdp:'x'}); threw exception Error: TypeMismatchError: DOM Exception 17.
     17PASS new RTCSessionDescription({type:'offer', sdp:''}); threw exception Error: TypeMismatchError: DOM Exception 17.
    1818PASS new RTCSessionDescription({type:'offer', sdp:'x'}); did not throw exception.
    1919PASS new RTCSessionDescription({type:'answer', sdp:'x'}); did not throw exception.
  • trunk/LayoutTests/platform/chromium/fast/dynamic/insertAdjacentElement-expected.txt

    r134792 r134954  
    11Caught expected exception: Error: NotSupportedError: DOM Exception 9
    2 Caught expected exception: Error: TYPE_MISMATCH_ERR: DOM Exception 17
     2Caught expected exception: Error: TypeMismatchError: DOM Exception 17
    331 (black) 2 (green) 3 (green) 4 (black)
    44
  • trunk/LayoutTests/platform/efl/fast/dynamic/insertAdjacentElement-expected.txt

    r134792 r134954  
    11Caught expected exception: Error: NotSupportedError: DOM Exception 9
    2 Caught expected exception: Error: TYPE_MISMATCH_ERR: DOM Exception 17
     2Caught expected exception: Error: TypeMismatchError: DOM Exception 17
    331 (black) 2 (green) 3 (green) 4 (black)
    44
  • trunk/LayoutTests/platform/gtk/fast/dynamic/insertAdjacentElement-expected.txt

    r134792 r134954  
    11Caught expected exception: Error: NotSupportedError: DOM Exception 9
    2 Caught expected exception: Error: TYPE_MISMATCH_ERR: DOM Exception 17
     2Caught expected exception: Error: TypeMismatchError: DOM Exception 17
    331 (black) 2 (green) 3 (green) 4 (black)
    44
  • trunk/LayoutTests/platform/mac/fast/dynamic/insertAdjacentElement-expected.txt

    r134792 r134954  
    11Caught expected exception: Error: NotSupportedError: DOM Exception 9
    2 Caught expected exception: Error: TYPE_MISMATCH_ERR: DOM Exception 17
     2Caught expected exception: Error: TypeMismatchError: DOM Exception 17
    331 (black) 2 (green) 3 (green) 4 (black)
    44
  • trunk/LayoutTests/platform/qt/fast/dynamic/insertAdjacentElement-expected.txt

    r134792 r134954  
    11Caught expected exception: Error: NotSupportedError: DOM Exception 9
    2 Caught expected exception: Error: TYPE_MISMATCH_ERR: DOM Exception 17
     2Caught expected exception: Error: TypeMismatchError: DOM Exception 17
    331 (black) 2 (green) 3 (green) 4 (black)
    44
  • trunk/LayoutTests/security/crypto-random-values-types-expected.txt

    r134440 r134954  
    1212PASS crypto.getRandomValues(new Uint32Array(3)) is undefined.
    1313PASS crypto.getRandomValues(new Int32Array(3)) is undefined.
    14 PASS crypto.getRandomValues(new Float32Array(3)) threw exception Error: TYPE_MISMATCH_ERR: DOM Exception 17.
     14PASS crypto.getRandomValues(new Float32Array(3)) threw exception Error: TypeMismatchError: DOM Exception 17.
    1515PASS successfullyParsed is true
    1616
  • trunk/LayoutTests/svg/dom/SVGTransformList-expected.txt

    r134440 r134954  
    1212PASS transform.createSVGTransformFromMatrix(1) threw exception TypeError: Type error.
    1313PASS transform.createSVGTransformFromMatrix(true) threw exception TypeError: Type error.
    14 PASS transform.createSVGTransformFromMatrix(undefined) threw exception Error: TYPE_MISMATCH_ERR: DOM Exception 17.
    15 PASS transform.createSVGTransformFromMatrix(null) threw exception Error: TYPE_MISMATCH_ERR: DOM Exception 17.
     14PASS transform.createSVGTransformFromMatrix(undefined) threw exception Error: TypeMismatchError: DOM Exception 17.
     15PASS transform.createSVGTransformFromMatrix(null) threw exception Error: TypeMismatchError: DOM Exception 17.
    1616PASS successfullyParsed is true
    1717
  • trunk/Source/WebCore/ChangeLog

    r134952 r134954  
     12012-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
    1162012-11-16  Balazs Kelemen  <kbalazs@webkit.org>
    217
  • trunk/Source/WebCore/dom/DOMCoreException.cpp

    r134949 r134954  
    5252    { "InvalidAccessError", "A parameter or an operation was not supported by the underlying object." },
    5353    { "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     { "TYPE_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." },
    5555    { "SECURITY_ERR", "An attempt was made to break through the security policy of the user agent." },
    5656    // 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  
    5555        // Introduced in DOM Level 3:
    5656        VALIDATION_ERR = 16, // Historical
    57         TYPE_MISMATCH_ERR = 17,
     57        TYPE_MISMATCH_ERR = 17, // Historical; use TypeError instead
    5858
    5959        // XMLHttpRequest extension:
Note: See TracChangeset for help on using the changeset viewer.