Changeset 134949 in webkit


Ignore:
Timestamp:
Nov 16, 2012 7:44:12 AM (11 years ago)
Author:
arv@chromium.org
Message:

Update DOMException name: InvalidAccessError
https://bugs.webkit.org/show_bug.cgi?id=102400

Reviewed by Kentaro Hara.

Source/WebCore:

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

Updated existing tests.

  • dom/DOMCoreException.cpp:

LayoutTests:

Updated tests and expectations.

  • editing/undomanager/undomanager-reenter-expected.txt:
  • editing/undomanager/undomanager-reenter.html:
  • editing/undomanager/undoscopehost-use-after-free-expected.txt:
  • editing/undomanager/undoscopehost-use-after-free.html:
  • fast/css/CSSPrimitiveValue-exceptions-expected.txt:
  • fast/css/getFloatValueForUnit-expected.txt:
  • fast/css/getFloatValueForUnit.html:
  • fast/css/resources/CSSPrimitiveValue-exceptions.js:
  • fast/dom/XMLSerializer-doctype2-expected.txt:
  • fast/dom/XMLSerializer-doctype2.html:
  • fast/dom/setPrimitiveValue-exceptions-expected.txt:
  • fast/xmlhttprequest/xmlhttprequest-responsetype-before-open-sync-request-expected.txt:
  • fast/xmlhttprequest/xmlhttprequest-responsetype-sync-request-expected.txt:
  • fast/xmlhttprequest/xmlhttprequest-sync-disabled-expected.txt:
  • http/tests/media/media-source/video-media-source-add-and-remove-buffers-expected.txt:
  • http/tests/media/media-source/video-media-source-duration-changed-expected.txt:
  • http/tests/websocket/tests/hybi/close-expected.txt:
  • http/tests/websocket/tests/hybi/close.html:
  • platform/chromium-mac/fast/dom/setPrimitiveValue-exceptions-expected.txt:
  • platform/chromium-win/fast/dom/setPrimitiveValue-exceptions-expected.txt:
  • webintents/web-intents-api-expected.txt:
  • webintents/web-intents-api.html:
Location:
trunk
Files:
25 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r134943 r134949  
     12012-11-16  Erik Arvidsson  <arv@chromium.org>
     2
     3        Update DOMException name: InvalidAccessError
     4        https://bugs.webkit.org/show_bug.cgi?id=102400
     5
     6        Reviewed by Kentaro Hara.
     7
     8        Updated tests and expectations.
     9
     10        * editing/undomanager/undomanager-reenter-expected.txt:
     11        * editing/undomanager/undomanager-reenter.html:
     12        * editing/undomanager/undoscopehost-use-after-free-expected.txt:
     13        * editing/undomanager/undoscopehost-use-after-free.html:
     14        * fast/css/CSSPrimitiveValue-exceptions-expected.txt:
     15        * fast/css/getFloatValueForUnit-expected.txt:
     16        * fast/css/getFloatValueForUnit.html:
     17        * fast/css/resources/CSSPrimitiveValue-exceptions.js:
     18        * fast/dom/XMLSerializer-doctype2-expected.txt:
     19        * fast/dom/XMLSerializer-doctype2.html:
     20        * fast/dom/setPrimitiveValue-exceptions-expected.txt:
     21        * fast/xmlhttprequest/xmlhttprequest-responsetype-before-open-sync-request-expected.txt:
     22        * fast/xmlhttprequest/xmlhttprequest-responsetype-sync-request-expected.txt:
     23        * fast/xmlhttprequest/xmlhttprequest-sync-disabled-expected.txt:
     24        * http/tests/media/media-source/video-media-source-add-and-remove-buffers-expected.txt:
     25        * http/tests/media/media-source/video-media-source-duration-changed-expected.txt:
     26        * http/tests/websocket/tests/hybi/close-expected.txt:
     27        * http/tests/websocket/tests/hybi/close.html:
     28        * platform/chromium-mac/fast/dom/setPrimitiveValue-exceptions-expected.txt:
     29        * platform/chromium-win/fast/dom/setPrimitiveValue-exceptions-expected.txt:
     30        * webintents/web-intents-api-expected.txt:
     31        * webintents/web-intents-api.html:
     32
    1332012-11-16  Sudarsana Nagineni  <sudarsana.nagineni@intel.com>
    234
  • trunk/LayoutTests/editing/undomanager/undomanager-reenter-expected.txt

    r126245 r134949  
    55
    66call undoManager.transact() during the execute callback
    7 PASS undoManager.transact(transaction) threw exception Error: INVALID_ACCESS_ERR: DOM Exception 15.
     7PASS undoManager.transact(transaction) threw exception Error: InvalidAccessError: DOM Exception 15.
    88call undoManager.undo() during the undo callback
    9 PASS undoManager.undo() threw exception Error: INVALID_ACCESS_ERR: DOM Exception 15.
     9PASS undoManager.undo() threw exception Error: InvalidAccessError: DOM Exception 15.
    1010call undoManager.clearRedo() during the redo callback
    11 PASS undoManager.redo() threw exception Error: INVALID_ACCESS_ERR: DOM Exception 15.
     11PASS undoManager.redo() threw exception Error: InvalidAccessError: DOM Exception 15.
    1212PASS successfullyParsed is true
    1313
  • trunk/LayoutTests/editing/undomanager/undomanager-reenter.html

    r126245 r134949  
    2828
    2929debug("call undoManager.transact() during the execute callback");
    30 shouldThrow("undoManager.transact(transaction)", "'Error: INVALID_ACCESS_ERR: DOM Exception 15'");
     30shouldThrow("undoManager.transact(transaction)", "'Error: InvalidAccessError: DOM Exception 15'");
    3131
    3232debug("call undoManager.undo() during the undo callback");
    33 shouldThrow("undoManager.undo()", "'Error: INVALID_ACCESS_ERR: DOM Exception 15'");
     33shouldThrow("undoManager.undo()", "'Error: InvalidAccessError: DOM Exception 15'");
    3434
    3535debug("call undoManager.clearRedo() during the redo callback");
    36 shouldThrow("undoManager.redo()", "'Error: INVALID_ACCESS_ERR: DOM Exception 15'");
     36shouldThrow("undoManager.redo()", "'Error: InvalidAccessError: DOM Exception 15'");
    3737
    3838var successfullyParsed = true;
  • trunk/LayoutTests/editing/undomanager/undoscopehost-use-after-free-expected.txt

    r125951 r134949  
    55
    66call transact() after the undoScopeHost has been reclaimed.
    7 PASS undoManager.transact(transaction) threw exception Error: INVALID_ACCESS_ERR: DOM Exception 15.
     7PASS undoManager.transact(transaction) threw exception Error: InvalidAccessError: DOM Exception 15.
    88PASS successfullyParsed is true
    99
  • trunk/LayoutTests/editing/undomanager/undoscopehost-use-after-free.html

    r126245 r134949  
    2424
    2525debug("call transact() after the undoScopeHost has been reclaimed.");
    26 shouldThrow("undoManager.transact(transaction)", "'Error: INVALID_ACCESS_ERR: DOM Exception 15'");
     26shouldThrow("undoManager.transact(transaction)", "'Error: InvalidAccessError: DOM Exception 15'");
    2727
    2828var successfullyParsed = true;
  • trunk/LayoutTests/fast/css/CSSPrimitiveValue-exceptions-expected.txt

    r72189 r134949  
    44
    55
    6 PASS div.style.getPropertyCSSValue('width').getFloatValue(CSSPrimitiveValue.CSS_UNKNOWN) threw exception Error: INVALID_ACCESS_ERR: DOM Exception 15.
    7 PASS div.style.getPropertyCSSValue('width').getFloatValue(CSSPrimitiveValue.CSS_STRING) threw exception Error: INVALID_ACCESS_ERR: DOM Exception 15.
    8 PASS div.style.getPropertyCSSValue('width').getFloatValue(CSSPrimitiveValue.CSS_HZ) threw exception Error: INVALID_ACCESS_ERR: DOM Exception 15.
    9 PASS div.style.getPropertyCSSValue('width').getFloatValue(CSSPrimitiveValue.CSS_S) threw exception Error: INVALID_ACCESS_ERR: DOM Exception 15.
    10 PASS div.style.getPropertyCSSValue('width').getFloatValue(CSSPrimitiveValue.CSS_RAD) threw exception Error: INVALID_ACCESS_ERR: DOM Exception 15.
    11 PASS div.style.getPropertyCSSValue('width').getFloatValue(CSSPrimitiveValue.CSS_PERCENTAGE) threw exception Error: INVALID_ACCESS_ERR: DOM Exception 15.
    12 PASS div.style.getPropertyCSSValue('height').getFloatValue(CSSPrimitiveValue.CSS_PX) threw exception Error: INVALID_ACCESS_ERR: DOM Exception 15.
    13 PASS div.style.getPropertyCSSValue('height').getFloatValue(CSSPrimitiveValue.CSS_DEG) threw exception Error: INVALID_ACCESS_ERR: DOM Exception 15.
     6PASS div.style.getPropertyCSSValue('width').getFloatValue(CSSPrimitiveValue.CSS_UNKNOWN) threw exception Error: InvalidAccessError: DOM Exception 15.
     7PASS div.style.getPropertyCSSValue('width').getFloatValue(CSSPrimitiveValue.CSS_STRING) threw exception Error: InvalidAccessError: DOM Exception 15.
     8PASS div.style.getPropertyCSSValue('width').getFloatValue(CSSPrimitiveValue.CSS_HZ) threw exception Error: InvalidAccessError: DOM Exception 15.
     9PASS div.style.getPropertyCSSValue('width').getFloatValue(CSSPrimitiveValue.CSS_S) threw exception Error: InvalidAccessError: DOM Exception 15.
     10PASS div.style.getPropertyCSSValue('width').getFloatValue(CSSPrimitiveValue.CSS_RAD) threw exception Error: InvalidAccessError: DOM Exception 15.
     11PASS div.style.getPropertyCSSValue('width').getFloatValue(CSSPrimitiveValue.CSS_PERCENTAGE) threw exception Error: InvalidAccessError: DOM Exception 15.
     12PASS div.style.getPropertyCSSValue('height').getFloatValue(CSSPrimitiveValue.CSS_PX) threw exception Error: InvalidAccessError: DOM Exception 15.
     13PASS div.style.getPropertyCSSValue('height').getFloatValue(CSSPrimitiveValue.CSS_DEG) threw exception Error: InvalidAccessError: DOM Exception 15.
    1414PASS div.style.getPropertyCSSValue('clip').primitiveType is CSSPrimitiveValue.CSS_RECT
    15 PASS div.style.getPropertyCSSValue('clip').getFloatValue(CSSPrimitiveValue.CSS_PX) threw exception Error: INVALID_ACCESS_ERR: DOM Exception 15.
    16 PASS div.style.getPropertyCSSValue('clip').getStringValue() threw exception Error: INVALID_ACCESS_ERR: DOM Exception 15.
    17 PASS div.style.getPropertyCSSValue('clip').getCounterValue() threw exception Error: INVALID_ACCESS_ERR: DOM Exception 15.
    18 PASS div.style.getPropertyCSSValue('clip').getRGBColorValue() threw exception Error: INVALID_ACCESS_ERR: DOM Exception 15.
     15PASS div.style.getPropertyCSSValue('clip').getFloatValue(CSSPrimitiveValue.CSS_PX) threw exception Error: InvalidAccessError: DOM Exception 15.
     16PASS div.style.getPropertyCSSValue('clip').getStringValue() threw exception Error: InvalidAccessError: DOM Exception 15.
     17PASS div.style.getPropertyCSSValue('clip').getCounterValue() threw exception Error: InvalidAccessError: DOM Exception 15.
     18PASS div.style.getPropertyCSSValue('clip').getRGBColorValue() threw exception Error: InvalidAccessError: DOM Exception 15.
    1919PASS div.style.getPropertyCSSValue('color').primitiveType is CSSPrimitiveValue.CSS_RGBCOLOR
    20 PASS div.style.getPropertyCSSValue('color').getFloatValue(CSSPrimitiveValue.CSS_PX) threw exception Error: INVALID_ACCESS_ERR: DOM Exception 15.
    21 PASS div.style.getPropertyCSSValue('color').getStringValue() threw exception Error: INVALID_ACCESS_ERR: DOM Exception 15.
    22 PASS div.style.getPropertyCSSValue('color').getCounterValue() threw exception Error: INVALID_ACCESS_ERR: DOM Exception 15.
    23 PASS div.style.getPropertyCSSValue('color').getRectValue() threw exception Error: INVALID_ACCESS_ERR: DOM Exception 15.
     20PASS div.style.getPropertyCSSValue('color').getFloatValue(CSSPrimitiveValue.CSS_PX) threw exception Error: InvalidAccessError: DOM Exception 15.
     21PASS div.style.getPropertyCSSValue('color').getStringValue() threw exception Error: InvalidAccessError: DOM Exception 15.
     22PASS div.style.getPropertyCSSValue('color').getCounterValue() threw exception Error: InvalidAccessError: DOM Exception 15.
     23PASS div.style.getPropertyCSSValue('color').getRectValue() threw exception Error: InvalidAccessError: DOM Exception 15.
    2424PASS successfullyParsed is true
    2525
  • trunk/LayoutTests/fast/css/getFloatValueForUnit-expected.txt

    r72189 r134949  
    1818PASS getFloatValue('-webkit-animation-delay', CSSPrimitiveValue.CSS_S) is 0.2
    1919PASS getFloatValue('-webkit-animation-delay', CSSPrimitiveValue.CSS_NUMBER) is 200
    20 PASS getFloatValue('font-size', CSSPrimitiveValue.CSS_PERCENTAGE) threw exception Error: INVALID_ACCESS_ERR: DOM Exception 15.
    21 PASS getFloatValue('font-size', CSSPrimitiveValue.CSS_MS) threw exception Error: INVALID_ACCESS_ERR: DOM Exception 15.
    22 PASS getFloatValue('font-size', CSSPrimitiveValue.CSS_HZ) threw exception Error: INVALID_ACCESS_ERR: DOM Exception 15.
    23 PASS getFloatValue('font-size', CSSPrimitiveValue.CSS_DEG) threw exception Error: INVALID_ACCESS_ERR: DOM Exception 15.
    24 PASS getFloatValue('font-size', CSSPrimitiveValue.CSS_RGBCOLOR) threw exception Error: INVALID_ACCESS_ERR: DOM Exception 15.
    25 PASS getFirstFloatValueInList('-webkit-transform', CSSPrimitiveValue.CSS_PERCENTAGE) threw exception Error: INVALID_ACCESS_ERR: DOM Exception 15.
    26 PASS getFirstFloatValueInList('-webkit-transform', CSSPrimitiveValue.CSS_PX) threw exception Error: INVALID_ACCESS_ERR: DOM Exception 15.
    27 PASS getFirstFloatValueInList('-webkit-transform', CSSPrimitiveValue.CSS_MS) threw exception Error: INVALID_ACCESS_ERR: DOM Exception 15.
    28 PASS getFirstFloatValueInList('-webkit-transform', CSSPrimitiveValue.CSS_HZ) threw exception Error: INVALID_ACCESS_ERR: DOM Exception 15.
    29 PASS getFirstFloatValueInList('-webkit-transform', CSSPrimitiveValue.CSS_RGBCOLOR) threw exception Error: INVALID_ACCESS_ERR: DOM Exception 15.
    30 PASS getFloatValue('-webkit-animation-delay', CSSPrimitiveValue.CSS_PERCENTAGE) threw exception Error: INVALID_ACCESS_ERR: DOM Exception 15.
    31 PASS getFloatValue('-webkit-animation-delay', CSSPrimitiveValue.CSS_PX) threw exception Error: INVALID_ACCESS_ERR: DOM Exception 15.
    32 PASS getFloatValue('-webkit-animation-delay', CSSPrimitiveValue.CSS_DEG) threw exception Error: INVALID_ACCESS_ERR: DOM Exception 15.
    33 PASS getFloatValue('-webkit-animation-delay', CSSPrimitiveValue.CSS_HZ) threw exception Error: INVALID_ACCESS_ERR: DOM Exception 15.
    34 PASS getFloatValue('-webkit-animation-delay', CSSPrimitiveValue.CSS_RGBCOLOR) threw exception Error: INVALID_ACCESS_ERR: DOM Exception 15.
     20PASS getFloatValue('font-size', CSSPrimitiveValue.CSS_PERCENTAGE) threw exception Error: InvalidAccessError: DOM Exception 15.
     21PASS getFloatValue('font-size', CSSPrimitiveValue.CSS_MS) threw exception Error: InvalidAccessError: DOM Exception 15.
     22PASS getFloatValue('font-size', CSSPrimitiveValue.CSS_HZ) threw exception Error: InvalidAccessError: DOM Exception 15.
     23PASS getFloatValue('font-size', CSSPrimitiveValue.CSS_DEG) threw exception Error: InvalidAccessError: DOM Exception 15.
     24PASS getFloatValue('font-size', CSSPrimitiveValue.CSS_RGBCOLOR) threw exception Error: InvalidAccessError: DOM Exception 15.
     25PASS getFirstFloatValueInList('-webkit-transform', CSSPrimitiveValue.CSS_PERCENTAGE) threw exception Error: InvalidAccessError: DOM Exception 15.
     26PASS getFirstFloatValueInList('-webkit-transform', CSSPrimitiveValue.CSS_PX) threw exception Error: InvalidAccessError: DOM Exception 15.
     27PASS getFirstFloatValueInList('-webkit-transform', CSSPrimitiveValue.CSS_MS) threw exception Error: InvalidAccessError: DOM Exception 15.
     28PASS getFirstFloatValueInList('-webkit-transform', CSSPrimitiveValue.CSS_HZ) threw exception Error: InvalidAccessError: DOM Exception 15.
     29PASS getFirstFloatValueInList('-webkit-transform', CSSPrimitiveValue.CSS_RGBCOLOR) threw exception Error: InvalidAccessError: DOM Exception 15.
     30PASS getFloatValue('-webkit-animation-delay', CSSPrimitiveValue.CSS_PERCENTAGE) threw exception Error: InvalidAccessError: DOM Exception 15.
     31PASS getFloatValue('-webkit-animation-delay', CSSPrimitiveValue.CSS_PX) threw exception Error: InvalidAccessError: DOM Exception 15.
     32PASS getFloatValue('-webkit-animation-delay', CSSPrimitiveValue.CSS_DEG) threw exception Error: InvalidAccessError: DOM Exception 15.
     33PASS getFloatValue('-webkit-animation-delay', CSSPrimitiveValue.CSS_HZ) threw exception Error: InvalidAccessError: DOM Exception 15.
     34PASS getFloatValue('-webkit-animation-delay', CSSPrimitiveValue.CSS_RGBCOLOR) threw exception Error: InvalidAccessError: DOM Exception 15.
    3535PASS successfullyParsed is true
    3636
  • trunk/LayoutTests/fast/css/getFloatValueForUnit.html

    r120683 r134949  
    1010    testRunner.dumpAsText();
    1111
    12 var invalidAccessError = "Error: INVALID_ACCESS_ERR: DOM Exception 15";
     12var invalidAccessError = "Error: InvalidAccessError: DOM Exception 15";
    1313
    1414description("Testing whether CSSPrimitiveValue.getFloatValue() converts units correctly.");
  • trunk/LayoutTests/fast/css/resources/CSSPrimitiveValue-exceptions.js

    r98407 r134949  
    88div.style.color = "rgb(0, 0, 0)";
    99
    10 var invalidAccessError = "Error: INVALID_ACCESS_ERR: DOM Exception 15";
     10var invalidAccessError = "Error: InvalidAccessError: DOM Exception 15";
    1111
    1212// Test passing invalid unit to getFloatValue
  • trunk/LayoutTests/fast/dom/XMLSerializer-doctype2-expected.txt

    r21687 r134949  
    11This tests XMLSerializer.serializeToString() on a DocumentType node that does not have a document associated with it. It should throw an INVALID_ACCESS_ERR DOMException.
    2 PASS: an Error: INVALID_ACCESS_ERR: DOM Exception 15 was thrown as expected.
     2PASS: an Error: InvalidAccessError: DOM Exception 15 was thrown as expected.
  • trunk/LayoutTests/fast/dom/XMLSerializer-doctype2.html

    r120792 r134949  
    2020                debug("FAIL: XMLSerializer.serializeToString() should throw an exception if it tries to serialize a documentless DocumentType node.");
    2121            } catch (e) {
    22                 if (e == "Error: INVALID_ACCESS_ERR: DOM Exception 15")
     22                if (e == "Error: InvalidAccessError: DOM Exception 15")
    2323                    debug("PASS: an " + e + " was thrown as expected.")
    2424                else
  • trunk/LayoutTests/fast/dom/setPrimitiveValue-exceptions-expected.txt

    r134785 r134949  
    1212PASS left.setFloatValue(CSSPrimitiveValue.CSS_UNKNOWN, 25) threw exception Error: NoModificationAllowedError: DOM Exception 7.
    1313PASS left.setFloatValue(CSSPrimitiveValue.CSS_STRING, 25) threw exception Error: NoModificationAllowedError: DOM Exception 7.
    14 PASS left.getFloatValue(CSSPrimitiveValue.CSS_UNKNOWN) threw exception Error: INVALID_ACCESS_ERR: DOM Exception 15.
    15 PASS left.getFloatValue(CSSPrimitiveValue.CSS_STRING) threw exception Error: INVALID_ACCESS_ERR: DOM Exception 15.
    16 PASS left.getStringValue() threw exception Error: INVALID_ACCESS_ERR: DOM Exception 15.
    17 PASS left.getCounterValue() threw exception Error: INVALID_ACCESS_ERR: DOM Exception 15.
    18 PASS left.getRectValue() threw exception Error: INVALID_ACCESS_ERR: DOM Exception 15.
    19 PASS left.getRGBColorValue() threw exception Error: INVALID_ACCESS_ERR: DOM Exception 15.
     14PASS left.getFloatValue(CSSPrimitiveValue.CSS_UNKNOWN) threw exception Error: InvalidAccessError: DOM Exception 15.
     15PASS left.getFloatValue(CSSPrimitiveValue.CSS_STRING) threw exception Error: InvalidAccessError: DOM Exception 15.
     16PASS left.getStringValue() threw exception Error: InvalidAccessError: DOM Exception 15.
     17PASS left.getCounterValue() threw exception Error: InvalidAccessError: DOM Exception 15.
     18PASS left.getRectValue() threw exception Error: InvalidAccessError: DOM Exception 15.
     19PASS left.getRGBColorValue() threw exception Error: InvalidAccessError: DOM Exception 15.
    2020PASS left.getFloatValue(CSSPrimitiveValue.CSS_NUMBER) is 10
    2121PASS left.getFloatValue(CSSPrimitiveValue.CSS_DIMENSION) is 10
     
    2727PASS fontFamily.setStringValue(CSSPrimitiveValue.CSS_DIMENSION, "G'day!") threw exception Error: NoModificationAllowedError: DOM Exception 7.
    2828PASS fontFamily.setStringValue(CSSPrimitiveValue.CSS_COUNTER, 'Hello, world!') threw exception Error: NoModificationAllowedError: DOM Exception 7.
    29 PASS fontFamily.getFloatValue() threw exception Error: INVALID_ACCESS_ERR: DOM Exception 15.
    30 PASS fontFamily.getCounterValue() threw exception Error: INVALID_ACCESS_ERR: DOM Exception 15.
    31 PASS fontFamily.getRectValue() threw exception Error: INVALID_ACCESS_ERR: DOM Exception 15.
    32 PASS fontFamily.getRGBColorValue() threw exception Error: INVALID_ACCESS_ERR: DOM Exception 15.
     29PASS fontFamily.getFloatValue() threw exception Error: InvalidAccessError: DOM Exception 15.
     30PASS fontFamily.getCounterValue() threw exception Error: InvalidAccessError: DOM Exception 15.
     31PASS fontFamily.getRectValue() threw exception Error: InvalidAccessError: DOM Exception 15.
     32PASS fontFamily.getRGBColorValue() threw exception Error: InvalidAccessError: DOM Exception 15.
    3333PASS fontFamily.getStringValue() is "Times"
    3434PASS left.getFloatValue(CSSPrimitiveValue.CSS_NUMBER) is 10
     
    4040PASS left.setFloatValue(CSSPrimitiveValue.CSS_UNKNOWN, 25) threw exception Error: NoModificationAllowedError: DOM Exception 7.
    4141PASS left.setFloatValue(CSSPrimitiveValue.CSS_STRING, 25) threw exception Error: NoModificationAllowedError: DOM Exception 7.
    42 PASS left.getFloatValue(CSSPrimitiveValue.CSS_UNKNOWN) threw exception Error: INVALID_ACCESS_ERR: DOM Exception 15.
    43 PASS left.getFloatValue(CSSPrimitiveValue.CSS_STRING) threw exception Error: INVALID_ACCESS_ERR: DOM Exception 15.
    44 PASS left.getStringValue() threw exception Error: INVALID_ACCESS_ERR: DOM Exception 15.
    45 PASS left.getCounterValue() threw exception Error: INVALID_ACCESS_ERR: DOM Exception 15.
    46 PASS left.getRectValue() threw exception Error: INVALID_ACCESS_ERR: DOM Exception 15.
    47 PASS left.getRGBColorValue() threw exception Error: INVALID_ACCESS_ERR: DOM Exception 15.
     42PASS left.getFloatValue(CSSPrimitiveValue.CSS_UNKNOWN) threw exception Error: InvalidAccessError: DOM Exception 15.
     43PASS left.getFloatValue(CSSPrimitiveValue.CSS_STRING) threw exception Error: InvalidAccessError: DOM Exception 15.
     44PASS left.getStringValue() threw exception Error: InvalidAccessError: DOM Exception 15.
     45PASS left.getCounterValue() threw exception Error: InvalidAccessError: DOM Exception 15.
     46PASS left.getRectValue() threw exception Error: InvalidAccessError: DOM Exception 15.
     47PASS left.getRGBColorValue() threw exception Error: InvalidAccessError: DOM Exception 15.
    4848PASS left.getFloatValue(CSSPrimitiveValue.CSS_NUMBER) is 10
    4949PASS left.getFloatValue(CSSPrimitiveValue.CSS_DIMENSION) is 10
  • trunk/LayoutTests/fast/xmlhttprequest/xmlhttprequest-responsetype-before-open-sync-request-expected.txt

    r104803 r134949  
    77
    88xhr.responseType = 'document';
    9 PASS xhr.open('GET', 'http://mydomain/', false); threw exception Error: INVALID_ACCESS_ERR: DOM Exception 15.
     9PASS xhr.open('GET', 'http://mydomain/', false); threw exception Error: InvalidAccessError: DOM Exception 15.
    1010xhr.responseType = 'document';
    11 PASS xhr.open('GET', 'https://mysecuredomain/', false); threw exception Error: INVALID_ACCESS_ERR: DOM Exception 15.
     11PASS xhr.open('GET', 'https://mysecuredomain/', false); threw exception Error: InvalidAccessError: DOM Exception 15.
    1212PASS window.location.protocol is "file:"
    1313xhr.responseType = 'document';
  • trunk/LayoutTests/fast/xmlhttprequest/xmlhttprequest-responsetype-sync-request-expected.txt

    r104803 r134949  
    66
    77
    8 PASS xhr.responseType = 'document'; threw exception Error: INVALID_ACCESS_ERR: DOM Exception 15.
    9 PASS xhr.responseType = 'document'; threw exception Error: INVALID_ACCESS_ERR: DOM Exception 15.
     8PASS xhr.responseType = 'document'; threw exception Error: InvalidAccessError: DOM Exception 15.
     9PASS xhr.responseType = 'document'; threw exception Error: InvalidAccessError: DOM Exception 15.
    1010PASS window.location.protocol is "file:"
    1111xhr.responseType = 'document';
  • trunk/LayoutTests/fast/xmlhttprequest/xmlhttprequest-sync-disabled-expected.txt

    r119276 r134949  
    55
    66
    7 PASS xhr.open("GET", "http://mydomain/", false) threw exception Error: INVALID_ACCESS_ERR: DOM Exception 15.
     7PASS xhr.open("GET", "http://mydomain/", false) threw exception Error: InvalidAccessError: DOM Exception 15.
    88PASS successfullyParsed is true
    99
  • trunk/LayoutTests/http/tests/media/media-source/video-media-source-add-and-remove-buffers-expected.txt

    r134792 r134949  
    77EVENT(webkitsourceopen)
    88Test empty type.
    9 Got expected exception Error: INVALID_ACCESS_ERR: DOM Exception 15
     9Got expected exception Error: InvalidAccessError: DOM Exception 15
    1010Test an unsupported type.
    1111Got expected exception Error: NotSupportedError: DOM Exception 9
     
    1919EVENT(webkitsourceopen)
    2020Test null buffer case
    21 Got expected exception Error: INVALID_ACCESS_ERR: DOM Exception 15
     21Got expected exception Error: InvalidAccessError: DOM Exception 15
    2222
    2323running testRemoveAgain
     
    3838Test a successful append.
    3939Test append with a null buffer.
    40 Got expected exception Error: INVALID_ACCESS_ERR: DOM Exception 15
     40Got expected exception Error: InvalidAccessError: DOM Exception 15
    4141Test append after ended.
    4242Got expected exception Error: InvalidStateError: DOM Exception 11
  • trunk/LayoutTests/http/tests/media/media-source/video-media-source-duration-changed-expected.txt

    r134648 r134949  
    77running testExpectExceptionOnNegativeDuration
    88EVENT(webkitsourceopen)
    9 Got expected exception Error: INVALID_ACCESS_ERR: DOM Exception 15
     9Got expected exception Error: InvalidAccessError: DOM Exception 15
    1010
    1111running testExpectExceptionOnNaNDuration
    1212EVENT(webkitsourceopen)
    13 Got expected exception Error: INVALID_ACCESS_ERR: DOM Exception 15
     13Got expected exception Error: InvalidAccessError: DOM Exception 15
    1414
    1515running testDurationChange
  • trunk/LayoutTests/http/tests/websocket/tests/hybi/close-expected.txt

    r134859 r134949  
    88
    99Invalid code test: 0
    10 Code 999 must cause INVALID_ACCESS_ERR.
     10Code 999 must cause InvalidAccessError.
    1111PASS exceptionProto === DOMException.prototype is true
    1212PASS exceptionName is invalidAccessErr
    1313Invalid code test: 1
    14 Code 1001 must cause INVALID_ACCESS_ERR.
     14Code 1001 must cause InvalidAccessError.
    1515PASS exceptionProto === DOMException.prototype is true
    1616PASS exceptionName is invalidAccessErr
    1717Invalid code test: 2
    18 Code 2999 must cause INVALID_ACCESS_ERR.
     18Code 2999 must cause InvalidAccessError.
    1919PASS exceptionProto === DOMException.prototype is true
    2020PASS exceptionName is invalidAccessErr
    2121Invalid code test: 3
    22 Code 5000 must cause INVALID_ACCESS_ERR.
     22Code 5000 must cause InvalidAccessError.
    2323PASS exceptionProto === DOMException.prototype is true
    2424PASS exceptionName is invalidAccessErr
    2525Invalid code test: 4
    26 Code 66536 must cause INVALID_ACCESS_ERR.
     26Code 66536 must cause InvalidAccessError.
    2727PASS exceptionProto === DOMException.prototype is true
    2828PASS exceptionName is invalidAccessErr
    2929Invalid code test: 5
    30 Code 4294968296 must cause INVALID_ACCESS_ERR.
     30Code 4294968296 must cause InvalidAccessError.
    3131PASS exceptionProto === DOMException.prototype is true
    3232PASS exceptionName is invalidAccessErr
    3333Invalid code test: 6
    34 Code 2999.9 must cause INVALID_ACCESS_ERR.
     34Code 2999.9 must cause InvalidAccessError.
    3535PASS exceptionProto === DOMException.prototype is true
    3636PASS exceptionName is invalidAccessErr
    3737Invalid code test: 7
    38 Code NaN must cause INVALID_ACCESS_ERR.
     38Code NaN must cause InvalidAccessError.
    3939PASS exceptionProto === DOMException.prototype is true
    4040PASS exceptionName is invalidAccessErr
    4141Invalid code test: 8
    42 Code 0 must cause INVALID_ACCESS_ERR.
     42Code 0 must cause InvalidAccessError.
    4343PASS exceptionProto === DOMException.prototype is true
    4444PASS exceptionName is invalidAccessErr
    4545Invalid code test: 9
    46 Code 100 must cause INVALID_ACCESS_ERR.
     46Code 100 must cause InvalidAccessError.
    4747PASS exceptionProto === DOMException.prototype is true
    4848PASS exceptionName is invalidAccessErr
    4949Invalid code test: 10
    50 Code Infinity must cause INVALID_ACCESS_ERR.
     50Code Infinity must cause InvalidAccessError.
    5151PASS exceptionProto === DOMException.prototype is true
    5252PASS exceptionName is invalidAccessErr
    5353Invalid code test: 11
    54 Code -Infinity must cause INVALID_ACCESS_ERR.
     54Code -Infinity must cause InvalidAccessError.
    5555PASS exceptionProto === DOMException.prototype is true
    5656PASS exceptionName is invalidAccessErr
    5757Invalid code test: 12
    58 Code NaN must cause INVALID_ACCESS_ERR.
     58Code NaN must cause InvalidAccessError.
    5959PASS exceptionProto === DOMException.prototype is true
    6060PASS exceptionName is invalidAccessErr
  • trunk/LayoutTests/http/tests/websocket/tests/hybi/close.html

    r134859 r134949  
    1818var reason;
    1919var result;
    20 var invalidAccessErr = "INVALID_ACCESS_ERR";
     20var invalidAccessErr = "InvalidAccessError";
    2121var syntaxErr = "SyntaxError";
    2222var normalClosure = 1000;
  • trunk/LayoutTests/platform/chromium-mac/fast/dom/setPrimitiveValue-exceptions-expected.txt

    r134785 r134949  
    1212PASS left.setFloatValue(CSSPrimitiveValue.CSS_UNKNOWN, 25) threw exception Error: NoModificationAllowedError: DOM Exception 7.
    1313PASS left.setFloatValue(CSSPrimitiveValue.CSS_STRING, 25) threw exception Error: NoModificationAllowedError: DOM Exception 7.
    14 PASS left.getFloatValue(CSSPrimitiveValue.CSS_UNKNOWN) threw exception Error: INVALID_ACCESS_ERR: DOM Exception 15.
    15 PASS left.getFloatValue(CSSPrimitiveValue.CSS_STRING) threw exception Error: INVALID_ACCESS_ERR: DOM Exception 15.
    16 PASS left.getStringValue() threw exception Error: INVALID_ACCESS_ERR: DOM Exception 15.
    17 PASS left.getCounterValue() threw exception Error: INVALID_ACCESS_ERR: DOM Exception 15.
    18 PASS left.getRectValue() threw exception Error: INVALID_ACCESS_ERR: DOM Exception 15.
    19 PASS left.getRGBColorValue() threw exception Error: INVALID_ACCESS_ERR: DOM Exception 15.
     14PASS left.getFloatValue(CSSPrimitiveValue.CSS_UNKNOWN) threw exception Error: InvalidAccessError: DOM Exception 15.
     15PASS left.getFloatValue(CSSPrimitiveValue.CSS_STRING) threw exception Error: InvalidAccessError: DOM Exception 15.
     16PASS left.getStringValue() threw exception Error: InvalidAccessError: DOM Exception 15.
     17PASS left.getCounterValue() threw exception Error: InvalidAccessError: DOM Exception 15.
     18PASS left.getRectValue() threw exception Error: InvalidAccessError: DOM Exception 15.
     19PASS left.getRGBColorValue() threw exception Error: InvalidAccessError: DOM Exception 15.
    2020PASS left.getFloatValue(CSSPrimitiveValue.CSS_NUMBER) is 10
    2121PASS left.getFloatValue(CSSPrimitiveValue.CSS_DIMENSION) is 10
     
    2727PASS fontFamily.setStringValue(CSSPrimitiveValue.CSS_DIMENSION, "G'day!") threw exception Error: NoModificationAllowedError: DOM Exception 7.
    2828PASS fontFamily.setStringValue(CSSPrimitiveValue.CSS_COUNTER, 'Hello, world!') threw exception Error: NoModificationAllowedError: DOM Exception 7.
    29 PASS fontFamily.getFloatValue() threw exception Error: INVALID_ACCESS_ERR: DOM Exception 15.
    30 PASS fontFamily.getCounterValue() threw exception Error: INVALID_ACCESS_ERR: DOM Exception 15.
    31 PASS fontFamily.getRectValue() threw exception Error: INVALID_ACCESS_ERR: DOM Exception 15.
    32 PASS fontFamily.getRGBColorValue() threw exception Error: INVALID_ACCESS_ERR: DOM Exception 15.
     29PASS fontFamily.getFloatValue() threw exception Error: InvalidAccessError: DOM Exception 15.
     30PASS fontFamily.getCounterValue() threw exception Error: InvalidAccessError: DOM Exception 15.
     31PASS fontFamily.getRectValue() threw exception Error: InvalidAccessError: DOM Exception 15.
     32PASS fontFamily.getRGBColorValue() threw exception Error: InvalidAccessError: DOM Exception 15.
    3333PASS fontFamily.getStringValue() is "Times"
    3434PASS left.getFloatValue(CSSPrimitiveValue.CSS_NUMBER) is 10
     
    4040PASS left.setFloatValue(CSSPrimitiveValue.CSS_UNKNOWN, 25) threw exception Error: NoModificationAllowedError: DOM Exception 7.
    4141PASS left.setFloatValue(CSSPrimitiveValue.CSS_STRING, 25) threw exception Error: NoModificationAllowedError: DOM Exception 7.
    42 PASS left.getFloatValue(CSSPrimitiveValue.CSS_UNKNOWN) threw exception Error: INVALID_ACCESS_ERR: DOM Exception 15.
    43 PASS left.getFloatValue(CSSPrimitiveValue.CSS_STRING) threw exception Error: INVALID_ACCESS_ERR: DOM Exception 15.
    44 PASS left.getStringValue() threw exception Error: INVALID_ACCESS_ERR: DOM Exception 15.
    45 PASS left.getCounterValue() threw exception Error: INVALID_ACCESS_ERR: DOM Exception 15.
    46 PASS left.getRectValue() threw exception Error: INVALID_ACCESS_ERR: DOM Exception 15.
    47 PASS left.getRGBColorValue() threw exception Error: INVALID_ACCESS_ERR: DOM Exception 15.
     42PASS left.getFloatValue(CSSPrimitiveValue.CSS_UNKNOWN) threw exception Error: InvalidAccessError: DOM Exception 15.
     43PASS left.getFloatValue(CSSPrimitiveValue.CSS_STRING) threw exception Error: InvalidAccessError: DOM Exception 15.
     44PASS left.getStringValue() threw exception Error: InvalidAccessError: DOM Exception 15.
     45PASS left.getCounterValue() threw exception Error: InvalidAccessError: DOM Exception 15.
     46PASS left.getRectValue() threw exception Error: InvalidAccessError: DOM Exception 15.
     47PASS left.getRGBColorValue() threw exception Error: InvalidAccessError: DOM Exception 15.
    4848PASS left.getFloatValue(CSSPrimitiveValue.CSS_NUMBER) is 10
    4949PASS left.getFloatValue(CSSPrimitiveValue.CSS_DIMENSION) is 10
  • trunk/LayoutTests/platform/chromium-win/fast/dom/setPrimitiveValue-exceptions-expected.txt

    r134785 r134949  
    1212PASS left.setFloatValue(CSSPrimitiveValue.CSS_UNKNOWN, 25) threw exception Error: NoModificationAllowedError: DOM Exception 7.
    1313PASS left.setFloatValue(CSSPrimitiveValue.CSS_STRING, 25) threw exception Error: NoModificationAllowedError: DOM Exception 7.
    14 PASS left.getFloatValue(CSSPrimitiveValue.CSS_UNKNOWN) threw exception Error: INVALID_ACCESS_ERR: DOM Exception 15.
    15 PASS left.getFloatValue(CSSPrimitiveValue.CSS_STRING) threw exception Error: INVALID_ACCESS_ERR: DOM Exception 15.
    16 PASS left.getStringValue() threw exception Error: INVALID_ACCESS_ERR: DOM Exception 15.
    17 PASS left.getCounterValue() threw exception Error: INVALID_ACCESS_ERR: DOM Exception 15.
    18 PASS left.getRectValue() threw exception Error: INVALID_ACCESS_ERR: DOM Exception 15.
    19 PASS left.getRGBColorValue() threw exception Error: INVALID_ACCESS_ERR: DOM Exception 15.
     14PASS left.getFloatValue(CSSPrimitiveValue.CSS_UNKNOWN) threw exception Error: InvalidAccessError: DOM Exception 15.
     15PASS left.getFloatValue(CSSPrimitiveValue.CSS_STRING) threw exception Error: InvalidAccessError: DOM Exception 15.
     16PASS left.getStringValue() threw exception Error: InvalidAccessError: DOM Exception 15.
     17PASS left.getCounterValue() threw exception Error: InvalidAccessError: DOM Exception 15.
     18PASS left.getRectValue() threw exception Error: InvalidAccessError: DOM Exception 15.
     19PASS left.getRGBColorValue() threw exception Error: InvalidAccessError: DOM Exception 15.
    2020PASS left.getFloatValue(CSSPrimitiveValue.CSS_NUMBER) is 10
    2121PASS left.getFloatValue(CSSPrimitiveValue.CSS_DIMENSION) is 10
     
    2727PASS fontFamily.setStringValue(CSSPrimitiveValue.CSS_DIMENSION, "G'day!") threw exception Error: NoModificationAllowedError: DOM Exception 7.
    2828PASS fontFamily.setStringValue(CSSPrimitiveValue.CSS_COUNTER, 'Hello, world!') threw exception Error: NoModificationAllowedError: DOM Exception 7.
    29 PASS fontFamily.getFloatValue() threw exception Error: INVALID_ACCESS_ERR: DOM Exception 15.
    30 PASS fontFamily.getCounterValue() threw exception Error: INVALID_ACCESS_ERR: DOM Exception 15.
    31 PASS fontFamily.getRectValue() threw exception Error: INVALID_ACCESS_ERR: DOM Exception 15.
    32 PASS fontFamily.getRGBColorValue() threw exception Error: INVALID_ACCESS_ERR: DOM Exception 15.
     29PASS fontFamily.getFloatValue() threw exception Error: InvalidAccessError: DOM Exception 15.
     30PASS fontFamily.getCounterValue() threw exception Error: InvalidAccessError: DOM Exception 15.
     31PASS fontFamily.getRectValue() threw exception Error: InvalidAccessError: DOM Exception 15.
     32PASS fontFamily.getRGBColorValue() threw exception Error: InvalidAccessError: DOM Exception 15.
    3333PASS fontFamily.getStringValue() is "Times"
    3434PASS left.getFloatValue(CSSPrimitiveValue.CSS_NUMBER) is 10
     
    4040PASS left.setFloatValue(CSSPrimitiveValue.CSS_UNKNOWN, 25) threw exception Error: NoModificationAllowedError: DOM Exception 7.
    4141PASS left.setFloatValue(CSSPrimitiveValue.CSS_STRING, 25) threw exception Error: NoModificationAllowedError: DOM Exception 7.
    42 PASS left.getFloatValue(CSSPrimitiveValue.CSS_UNKNOWN) threw exception Error: INVALID_ACCESS_ERR: DOM Exception 15.
    43 PASS left.getFloatValue(CSSPrimitiveValue.CSS_STRING) threw exception Error: INVALID_ACCESS_ERR: DOM Exception 15.
    44 PASS left.getStringValue() threw exception Error: INVALID_ACCESS_ERR: DOM Exception 15.
    45 PASS left.getCounterValue() threw exception Error: INVALID_ACCESS_ERR: DOM Exception 15.
    46 PASS left.getRectValue() threw exception Error: INVALID_ACCESS_ERR: DOM Exception 15.
    47 PASS left.getRGBColorValue() threw exception Error: INVALID_ACCESS_ERR: DOM Exception 15.
     42PASS left.getFloatValue(CSSPrimitiveValue.CSS_UNKNOWN) threw exception Error: InvalidAccessError: DOM Exception 15.
     43PASS left.getFloatValue(CSSPrimitiveValue.CSS_STRING) threw exception Error: InvalidAccessError: DOM Exception 15.
     44PASS left.getStringValue() threw exception Error: InvalidAccessError: DOM Exception 15.
     45PASS left.getCounterValue() threw exception Error: InvalidAccessError: DOM Exception 15.
     46PASS left.getRectValue() threw exception Error: InvalidAccessError: DOM Exception 15.
     47PASS left.getRGBColorValue() threw exception Error: InvalidAccessError: DOM Exception 15.
    4848PASS left.getFloatValue(CSSPrimitiveValue.CSS_NUMBER) is 10
    4949PASS left.getFloatValue(CSSPrimitiveValue.CSS_DIMENSION) is 10
  • trunk/LayoutTests/webintents/web-intents-api-expected.txt

    r134859 r134949  
    2727PASS intent8.data is null
    2828PASS intent9.data == '[object Object]' is true
    29 PASS navigator.webkitStartActivity(intent1) threw exception Error: INVALID_ACCESS_ERR: DOM Exception 15.
     29PASS navigator.webkitStartActivity(intent1) threw exception Error: InvalidAccessError: DOM Exception 15.
    3030PASS successfullyParsed is true
    3131
  • trunk/LayoutTests/webintents/web-intents-api.html

    r134859 r134949  
    5151      shouldEvaluateTo('intent9.data', {});
    5252
    53       shouldThrow('navigator.webkitStartActivity(intent1)', "'Error: INVALID_ACCESS_ERR: DOM Exception 15'");
     53      shouldThrow('navigator.webkitStartActivity(intent1)', "'Error: InvalidAccessError: DOM Exception 15'");
    5454</script>
    5555<script src="../fast/js/resources/js-test-post.js"></script>
  • trunk/Source/WebCore/ChangeLog

    r134948 r134949  
     12012-11-16  Erik Arvidsson  <arv@chromium.org>
     2
     3        Update DOMException name: InvalidAccessError
     4        https://bugs.webkit.org/show_bug.cgi?id=102400
     5
     6        Reviewed by Kentaro Hara.
     7
     8        Patch 15 of 25 to update DOMException name to match the spec and Firefox.
     9
     10        Updated existing tests.
     11
     12        * dom/DOMCoreException.cpp:
     13
    1142012-11-16  Alexandru Chiculita  <achicu@adobe.com>
    215
  • trunk/Source/WebCore/dom/DOMCoreException.cpp

    r134882 r134949  
    5050    { "InvalidModificationError", "An attempt was made to modify the type of the underlying object." },
    5151    { "NamespaceError", "An attempt was made to create or change an object in a way which is incorrect with regard to namespaces." },
    52     { "INVALID_ACCESS_ERR", "A parameter or an operation was not supported by the underlying object." },
     52    { "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." },
    5454    { "TYPE_MISMATCH_ERR", "The type of an object was incompatible with the expected type of the parameter associated to the object." },
Note: See TracChangeset for help on using the changeset viewer.