Changeset 134785 in webkit


Ignore:
Timestamp:
Nov 15, 2012 9:08:49 AM (11 years ago)
Author:
arv@chromium.org
Message:

Update DOMException name: NoModificationAllowedError
https://bugs.webkit.org/show_bug.cgi?id=102134

Reviewed by Ojan Vafai.

Source/WebCore:

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

Updated existing tests.

  • dom/DOMCoreException.cpp:

LayoutTests:

Updated tests and expectations.

  • dom/xhtml/level1/core/hc_nodevalue03-expected.txt:
  • fast/dom/EntityReference/readonly-exceptions-expected.txt:
  • fast/dom/HTMLElement/insertAdjacentHTML-errors-expected.txt:
  • fast/dom/HTMLElement/script-tests/insertAdjacentHTML-errors.js:
  • fast/dom/computed-style-set-property-expected.txt:
  • fast/dom/insertAdjacentHTML-DocumentFragment-crash-expected.txt:
  • fast/dom/outerText-no-element-expected.txt:
  • fast/dom/setPrimitiveValue-exceptions-expected.txt:
  • fast/dom/setPrimitiveValue-expected.txt:
  • fast/dynamic/outerHTML-no-element-expected.txt:
  • fast/frames/out-of-document-iframe-has-child-frame-expected.txt:
  • platform/chromium-mac/fast/dom/setPrimitiveValue-exceptions-expected.txt:
  • platform/chromium-win/fast/dom/setPrimitiveValue-exceptions-expected.txt:
  • platform/chromium-win/svg/custom/baseval-animval-equality-expected.txt:
  • platform/chromium/fast/dom/insertAdjacentHTML-DocumentFragment-crash-expected.txt:
  • platform/chromium/fast/frames/out-of-document-iframe-has-child-frame-expected.txt:
  • platform/chromium/svg/custom/baseval-animval-equality-expected.txt:
  • platform/gtk/svg/custom/baseval-animval-equality-expected.txt:
  • platform/mac/svg/custom/baseval-animval-equality-expected.txt:
  • platform/qt/svg/custom/baseval-animval-equality-expected.txt:
  • platform/qt/svg/dom/altGlyph-dom-expected.txt:
  • svg/animations/animate-gradient-transform-expected.txt:
  • svg/dom/SVGColor-expected.txt:
  • svg/dom/SVGLengthList-basics-expected.txt:
  • svg/dom/SVGNumberList-basics-expected.txt:
  • svg/dom/SVGPaint-expected.txt:
  • svg/dom/SVGTransformList-basics-expected.txt:
  • svg/dom/SVGViewSpec-defaults-expected.txt:
  • svg/dom/altGlyph-dom-expected.txt:
Location:
trunk
Files:
32 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r134783 r134785  
     12012-11-15  Erik Arvidsson  <arv@chromium.org>
     2
     3        Update DOMException name: NoModificationAllowedError
     4        https://bugs.webkit.org/show_bug.cgi?id=102134
     5
     6        Reviewed by Ojan Vafai.
     7
     8        Updated tests and expectations.
     9
     10        * dom/xhtml/level1/core/hc_nodevalue03-expected.txt:
     11        * fast/dom/EntityReference/readonly-exceptions-expected.txt:
     12        * fast/dom/HTMLElement/insertAdjacentHTML-errors-expected.txt:
     13        * fast/dom/HTMLElement/script-tests/insertAdjacentHTML-errors.js:
     14        * fast/dom/computed-style-set-property-expected.txt:
     15        * fast/dom/insertAdjacentHTML-DocumentFragment-crash-expected.txt:
     16        * fast/dom/outerText-no-element-expected.txt:
     17        * fast/dom/setPrimitiveValue-exceptions-expected.txt:
     18        * fast/dom/setPrimitiveValue-expected.txt:
     19        * fast/dynamic/outerHTML-no-element-expected.txt:
     20        * fast/frames/out-of-document-iframe-has-child-frame-expected.txt:
     21        * platform/chromium-mac/fast/dom/setPrimitiveValue-exceptions-expected.txt:
     22        * platform/chromium-win/fast/dom/setPrimitiveValue-exceptions-expected.txt:
     23        * platform/chromium-win/svg/custom/baseval-animval-equality-expected.txt:
     24        * platform/chromium/fast/dom/insertAdjacentHTML-DocumentFragment-crash-expected.txt:
     25        * platform/chromium/fast/frames/out-of-document-iframe-has-child-frame-expected.txt:
     26        * platform/chromium/svg/custom/baseval-animval-equality-expected.txt:
     27        * platform/gtk/svg/custom/baseval-animval-equality-expected.txt:
     28        * platform/mac/svg/custom/baseval-animval-equality-expected.txt:
     29        * platform/qt/svg/custom/baseval-animval-equality-expected.txt:
     30        * platform/qt/svg/dom/altGlyph-dom-expected.txt:
     31        * svg/animations/animate-gradient-transform-expected.txt:
     32        * svg/dom/SVGColor-expected.txt:
     33        * svg/dom/SVGLengthList-basics-expected.txt:
     34        * svg/dom/SVGNumberList-basics-expected.txt:
     35        * svg/dom/SVGPaint-expected.txt:
     36        * svg/dom/SVGTransformList-basics-expected.txt:
     37        * svg/dom/SVGViewSpec-defaults-expected.txt:
     38        * svg/dom/altGlyph-dom-expected.txt:
     39
    1402012-11-15  Eric Carlson  <eric.carlson@apple.com>
    241
  • trunk/LayoutTests/dom/xhtml/level1/core/hc_nodevalue03-expected.txt

    r12450 r134785  
    11Test    http://www.w3.org/2001/DOM-Test-Suite/level1/core/hc_nodevalue03
    22Status  error
    3 Message Error: NO_MODIFICATION_ALLOWED_ERR: DOM Exception 7
     3Message Error: NoModificationAllowedError: DOM Exception 7
  • trunk/LayoutTests/fast/dom/EntityReference/readonly-exceptions-expected.txt

    r30635 r134785  
    44
    55
    6 PASS xmlDoc2.adoptNode(entityReference) threw exception Error: NO_MODIFICATION_ALLOWED_ERR: DOM Exception 7.
     6PASS xmlDoc2.adoptNode(entityReference) threw exception Error: NoModificationAllowedError: DOM Exception 7.
    77PASS entityReference.ownerDocument is xmlDoc
    8 PASS entityReference.nodeValue = 'foo' threw exception Error: NO_MODIFICATION_ALLOWED_ERR: DOM Exception 7.
     8PASS entityReference.nodeValue = 'foo' threw exception Error: NoModificationAllowedError: DOM Exception 7.
    99PASS entityReference.nodeValue is null
    1010PASS entityReference.prefix = 'foo' threw exception Error: NAMESPACE_ERR: DOM Exception 14.
    1111PASS entityReference.prefix is null
    12 PASS entityReference.textContent = 'foo' threw exception Error: NO_MODIFICATION_ALLOWED_ERR: DOM Exception 7.
     12PASS entityReference.textContent = 'foo' threw exception Error: NoModificationAllowedError: DOM Exception 7.
    1313FAIL entityReference.textContent should be >. Was .
    1414FAIL childrenBeforeFailedAppend should be 1. Was 0.
    15 PASS entityReference.appendChild(text) threw exception Error: NO_MODIFICATION_ALLOWED_ERR: DOM Exception 7.
     15PASS entityReference.appendChild(text) threw exception Error: NoModificationAllowedError: DOM Exception 7.
    1616PASS entityReference.childNodes.length is childrenBeforeFailedAppend
    1717FAIL childrenBeforeFailedAppend should be 1. Was 0.
    18 PASS entityReference.insertBefore(text, entityReference.firstChild) threw exception Error: NO_MODIFICATION_ALLOWED_ERR: DOM Exception 7.
     18PASS entityReference.insertBefore(text, entityReference.firstChild) threw exception Error: NoModificationAllowedError: DOM Exception 7.
    1919PASS entityReference.childNodes.length is childrenBeforeFailedAppend
    2020PASS successfullyParsed is true
  • trunk/LayoutTests/fast/dom/HTMLElement/insertAdjacentHTML-errors-expected.txt

    r65134 r134785  
    77PASS div.insertAdjacentHTML('afterEnd', 'text') is undefined.
    88PASS div.insertAdjacentHTML('FOO', 'text') threw exception Error: SYNTAX_ERR: DOM Exception 12.
    9 PASS document.documentElement.insertAdjacentHTML('afterEnd', 'text') threw exception Error: NO_MODIFICATION_ALLOWED_ERR: DOM Exception 7.
     9PASS document.documentElement.insertAdjacentHTML('afterEnd', 'text') threw exception Error: NoModificationAllowedError: DOM Exception 7.
    1010PASS successfullyParsed is true
    1111
  • trunk/LayoutTests/fast/dom/HTMLElement/script-tests/insertAdjacentHTML-errors.js

    r98407 r134785  
    77
    88shouldThrow("div.insertAdjacentHTML('FOO', 'text')", '"Error: SYNTAX_ERR: DOM Exception 12"');
    9 shouldThrow("document.documentElement.insertAdjacentHTML('afterEnd', 'text')", '"Error: NO_MODIFICATION_ALLOWED_ERR: DOM Exception 7"');
     9shouldThrow("document.documentElement.insertAdjacentHTML('afterEnd', 'text')", '"Error: NoModificationAllowedError: DOM Exception 7"');
  • trunk/LayoutTests/fast/dom/computed-style-set-property-expected.txt

    r18406 r134785  
    22
    33Computed style parent (should be null): null
    4 PASS: got an exception when trying to change a computed style declaration, Error: NO_MODIFICATION_ALLOWED_ERR: DOM Exception 7
     4PASS: got an exception when trying to change a computed style declaration, Error: NoModificationAllowedError: DOM Exception 7
    55
    6 PASS: got an exception when trying to change a computed style declaration via setProperty, Error: NO_MODIFICATION_ALLOWED_ERR: DOM Exception 7
     6PASS: got an exception when trying to change a computed style declaration via setProperty, Error: NoModificationAllowedError: DOM Exception 7
  • trunk/LayoutTests/fast/dom/insertAdjacentHTML-DocumentFragment-crash-expected.txt

    r104454 r134785  
    1 CONSOLE MESSAGE: line 9: NO_MODIFICATION_ALLOWED_ERR: DOM Exception 7: An attempt was made to modify an object where modifications are not allowed.
     1CONSOLE MESSAGE: line 9: NoModificationAllowedError: DOM Exception 7: An attempt was made to modify an object where modifications are not allowed.
    22This test passes if it doesn't crash (or ASSERT).
  • trunk/LayoutTests/fast/dom/outerText-no-element-expected.txt

    r21687 r134785  
    33
    44this is a big test or something
    5 Expected error - Error: NO_MODIFICATION_ALLOWED_ERR: DOM Exception 7
     5Expected error - Error: NoModificationAllowedError: DOM Exception 7
  • trunk/LayoutTests/fast/dom/setPrimitiveValue-exceptions-expected.txt

    r108157 r134785  
    77PASS left.getFloatValue(CSSPrimitiveValue.CSS_DIMENSION) is 10
    88PASS left.getFloatValue(CSSPrimitiveValue.CSS_PX) is 10
    9 PASS left.setFloatValue(CSSPrimitiveValue.CSS_NUMBER, 25) threw exception Error: NO_MODIFICATION_ALLOWED_ERR: DOM Exception 7.
    10 PASS left.setFloatValue(CSSPrimitiveValue.CSS_DIMENSION, 25) threw exception Error: NO_MODIFICATION_ALLOWED_ERR: DOM Exception 7.
    11 PASS left.setFloatValue(CSSPrimitiveValue.CSS_PX, 25) threw exception Error: NO_MODIFICATION_ALLOWED_ERR: DOM Exception 7.
    12 PASS left.setFloatValue(CSSPrimitiveValue.CSS_UNKNOWN, 25) threw exception Error: NO_MODIFICATION_ALLOWED_ERR: DOM Exception 7.
    13 PASS left.setFloatValue(CSSPrimitiveValue.CSS_STRING, 25) threw exception Error: NO_MODIFICATION_ALLOWED_ERR: DOM Exception 7.
     9PASS left.setFloatValue(CSSPrimitiveValue.CSS_NUMBER, 25) threw exception Error: NoModificationAllowedError: DOM Exception 7.
     10PASS left.setFloatValue(CSSPrimitiveValue.CSS_DIMENSION, 25) threw exception Error: NoModificationAllowedError: DOM Exception 7.
     11PASS left.setFloatValue(CSSPrimitiveValue.CSS_PX, 25) threw exception Error: NoModificationAllowedError: DOM Exception 7.
     12PASS left.setFloatValue(CSSPrimitiveValue.CSS_UNKNOWN, 25) threw exception Error: NoModificationAllowedError: DOM Exception 7.
     13PASS left.setFloatValue(CSSPrimitiveValue.CSS_STRING, 25) threw exception Error: NoModificationAllowedError: DOM Exception 7.
    1414PASS left.getFloatValue(CSSPrimitiveValue.CSS_UNKNOWN) threw exception Error: INVALID_ACCESS_ERR: DOM Exception 15.
    1515PASS left.getFloatValue(CSSPrimitiveValue.CSS_STRING) threw exception Error: INVALID_ACCESS_ERR: DOM Exception 15.
     
    2222PASS left.getFloatValue(CSSPrimitiveValue.CSS_PX) is 10
    2323PASS fontFamily.getStringValue() is "Times"
    24 PASS fontFamily.setStringValue(CSSPrimitiveValue.CSS_STRING, 'Hi there!') threw exception Error: NO_MODIFICATION_ALLOWED_ERR: DOM Exception 7.
    25 PASS fontFamily.setStringValue(CSSPrimitiveValue.CSS_ATTR, "G'day!") threw exception Error: NO_MODIFICATION_ALLOWED_ERR: DOM Exception 7.
    26 PASS fontFamily.setStringValue(CSSPrimitiveValue.CSS_UNKNOWN, 'Hi there!') threw exception Error: NO_MODIFICATION_ALLOWED_ERR: DOM Exception 7.
    27 PASS fontFamily.setStringValue(CSSPrimitiveValue.CSS_DIMENSION, "G'day!") threw exception Error: NO_MODIFICATION_ALLOWED_ERR: DOM Exception 7.
    28 PASS fontFamily.setStringValue(CSSPrimitiveValue.CSS_COUNTER, 'Hello, world!') threw exception Error: NO_MODIFICATION_ALLOWED_ERR: DOM Exception 7.
     24PASS fontFamily.setStringValue(CSSPrimitiveValue.CSS_STRING, 'Hi there!') threw exception Error: NoModificationAllowedError: DOM Exception 7.
     25PASS fontFamily.setStringValue(CSSPrimitiveValue.CSS_ATTR, "G'day!") threw exception Error: NoModificationAllowedError: DOM Exception 7.
     26PASS fontFamily.setStringValue(CSSPrimitiveValue.CSS_UNKNOWN, 'Hi there!') threw exception Error: NoModificationAllowedError: DOM Exception 7.
     27PASS fontFamily.setStringValue(CSSPrimitiveValue.CSS_DIMENSION, "G'day!") threw exception Error: NoModificationAllowedError: DOM Exception 7.
     28PASS fontFamily.setStringValue(CSSPrimitiveValue.CSS_COUNTER, 'Hello, world!') threw exception Error: NoModificationAllowedError: DOM Exception 7.
    2929PASS fontFamily.getFloatValue() threw exception Error: INVALID_ACCESS_ERR: DOM Exception 15.
    3030PASS fontFamily.getCounterValue() threw exception Error: INVALID_ACCESS_ERR: DOM Exception 15.
     
    3535PASS left.getFloatValue(CSSPrimitiveValue.CSS_DIMENSION) is 10
    3636PASS left.getFloatValue(CSSPrimitiveValue.CSS_PX) is 10
    37 PASS left.setFloatValue(CSSPrimitiveValue.CSS_NUMBER, 25) threw exception Error: NO_MODIFICATION_ALLOWED_ERR: DOM Exception 7.
    38 PASS left.setFloatValue(CSSPrimitiveValue.CSS_DIMENSION, 25) threw exception Error: NO_MODIFICATION_ALLOWED_ERR: DOM Exception 7.
    39 PASS left.setFloatValue(CSSPrimitiveValue.CSS_PX, 25) threw exception Error: NO_MODIFICATION_ALLOWED_ERR: DOM Exception 7.
    40 PASS left.setFloatValue(CSSPrimitiveValue.CSS_UNKNOWN, 25) threw exception Error: NO_MODIFICATION_ALLOWED_ERR: DOM Exception 7.
    41 PASS left.setFloatValue(CSSPrimitiveValue.CSS_STRING, 25) threw exception Error: NO_MODIFICATION_ALLOWED_ERR: DOM Exception 7.
     37PASS left.setFloatValue(CSSPrimitiveValue.CSS_NUMBER, 25) threw exception Error: NoModificationAllowedError: DOM Exception 7.
     38PASS left.setFloatValue(CSSPrimitiveValue.CSS_DIMENSION, 25) threw exception Error: NoModificationAllowedError: DOM Exception 7.
     39PASS left.setFloatValue(CSSPrimitiveValue.CSS_PX, 25) threw exception Error: NoModificationAllowedError: DOM Exception 7.
     40PASS left.setFloatValue(CSSPrimitiveValue.CSS_UNKNOWN, 25) threw exception Error: NoModificationAllowedError: DOM Exception 7.
     41PASS left.setFloatValue(CSSPrimitiveValue.CSS_STRING, 25) threw exception Error: NoModificationAllowedError: DOM Exception 7.
    4242PASS left.getFloatValue(CSSPrimitiveValue.CSS_UNKNOWN) threw exception Error: INVALID_ACCESS_ERR: DOM Exception 15.
    4343PASS left.getFloatValue(CSSPrimitiveValue.CSS_STRING) threw exception Error: INVALID_ACCESS_ERR: DOM Exception 15.
  • trunk/LayoutTests/fast/dom/setPrimitiveValue-expected.txt

    r111387 r134785  
    11Test CSSPrimitiveValue setters.
    2 setFloatValue NO_MODIFICATION_ALLOWED_ERR: DOM Exception 7
     2setFloatValue NoModificationAllowedError: DOM Exception 7
  • trunk/LayoutTests/fast/dynamic/outerHTML-no-element-expected.txt

    r21687 r134785  
    33If the test fails, Safari may crash, or you may see a failure message below. If the test passes, you should see a message with a description of the expected exception.
    44
    5 This test passed - expected error - Error: NO_MODIFICATION_ALLOWED_ERR: DOM Exception 7
     5This test passed - expected error - Error: NoModificationAllowedError: DOM Exception 7
  • trunk/LayoutTests/platform/chromium-mac/fast/dom/setPrimitiveValue-exceptions-expected.txt

    r108173 r134785  
    77PASS left.getFloatValue(CSSPrimitiveValue.CSS_DIMENSION) is 10
    88PASS left.getFloatValue(CSSPrimitiveValue.CSS_PX) is 10
    9 PASS left.setFloatValue(CSSPrimitiveValue.CSS_NUMBER, 25) threw exception Error: NO_MODIFICATION_ALLOWED_ERR: DOM Exception 7.
    10 PASS left.setFloatValue(CSSPrimitiveValue.CSS_DIMENSION, 25) threw exception Error: NO_MODIFICATION_ALLOWED_ERR: DOM Exception 7.
    11 PASS left.setFloatValue(CSSPrimitiveValue.CSS_PX, 25) threw exception Error: NO_MODIFICATION_ALLOWED_ERR: DOM Exception 7.
    12 PASS left.setFloatValue(CSSPrimitiveValue.CSS_UNKNOWN, 25) threw exception Error: NO_MODIFICATION_ALLOWED_ERR: DOM Exception 7.
    13 PASS left.setFloatValue(CSSPrimitiveValue.CSS_STRING, 25) threw exception Error: NO_MODIFICATION_ALLOWED_ERR: DOM Exception 7.
     9PASS left.setFloatValue(CSSPrimitiveValue.CSS_NUMBER, 25) threw exception Error: NoModificationAllowedError: DOM Exception 7.
     10PASS left.setFloatValue(CSSPrimitiveValue.CSS_DIMENSION, 25) threw exception Error: NoModificationAllowedError: DOM Exception 7.
     11PASS left.setFloatValue(CSSPrimitiveValue.CSS_PX, 25) threw exception Error: NoModificationAllowedError: DOM Exception 7.
     12PASS left.setFloatValue(CSSPrimitiveValue.CSS_UNKNOWN, 25) threw exception Error: NoModificationAllowedError: DOM Exception 7.
     13PASS left.setFloatValue(CSSPrimitiveValue.CSS_STRING, 25) threw exception Error: NoModificationAllowedError: DOM Exception 7.
    1414PASS left.getFloatValue(CSSPrimitiveValue.CSS_UNKNOWN) threw exception Error: INVALID_ACCESS_ERR: DOM Exception 15.
    1515PASS left.getFloatValue(CSSPrimitiveValue.CSS_STRING) threw exception Error: INVALID_ACCESS_ERR: DOM Exception 15.
     
    2222PASS left.getFloatValue(CSSPrimitiveValue.CSS_PX) is 10
    2323PASS fontFamily.getStringValue() is "Times"
    24 PASS fontFamily.setStringValue(CSSPrimitiveValue.CSS_STRING, 'Hi there!') threw exception Error: NO_MODIFICATION_ALLOWED_ERR: DOM Exception 7.
    25 PASS fontFamily.setStringValue(CSSPrimitiveValue.CSS_ATTR, "G'day!") threw exception Error: NO_MODIFICATION_ALLOWED_ERR: DOM Exception 7.
    26 PASS fontFamily.setStringValue(CSSPrimitiveValue.CSS_UNKNOWN, 'Hi there!') threw exception Error: NO_MODIFICATION_ALLOWED_ERR: DOM Exception 7.
    27 PASS fontFamily.setStringValue(CSSPrimitiveValue.CSS_DIMENSION, "G'day!") threw exception Error: NO_MODIFICATION_ALLOWED_ERR: DOM Exception 7.
    28 PASS fontFamily.setStringValue(CSSPrimitiveValue.CSS_COUNTER, 'Hello, world!') threw exception Error: NO_MODIFICATION_ALLOWED_ERR: DOM Exception 7.
     24PASS fontFamily.setStringValue(CSSPrimitiveValue.CSS_STRING, 'Hi there!') threw exception Error: NoModificationAllowedError: DOM Exception 7.
     25PASS fontFamily.setStringValue(CSSPrimitiveValue.CSS_ATTR, "G'day!") threw exception Error: NoModificationAllowedError: DOM Exception 7.
     26PASS fontFamily.setStringValue(CSSPrimitiveValue.CSS_UNKNOWN, 'Hi there!') threw exception Error: NoModificationAllowedError: DOM Exception 7.
     27PASS fontFamily.setStringValue(CSSPrimitiveValue.CSS_DIMENSION, "G'day!") threw exception Error: NoModificationAllowedError: DOM Exception 7.
     28PASS fontFamily.setStringValue(CSSPrimitiveValue.CSS_COUNTER, 'Hello, world!') threw exception Error: NoModificationAllowedError: DOM Exception 7.
    2929PASS fontFamily.getFloatValue() threw exception Error: INVALID_ACCESS_ERR: DOM Exception 15.
    3030PASS fontFamily.getCounterValue() threw exception Error: INVALID_ACCESS_ERR: DOM Exception 15.
     
    3535PASS left.getFloatValue(CSSPrimitiveValue.CSS_DIMENSION) is 10
    3636PASS left.getFloatValue(CSSPrimitiveValue.CSS_PX) is 10
    37 PASS left.setFloatValue(CSSPrimitiveValue.CSS_NUMBER, 25) threw exception Error: NO_MODIFICATION_ALLOWED_ERR: DOM Exception 7.
    38 PASS left.setFloatValue(CSSPrimitiveValue.CSS_DIMENSION, 25) threw exception Error: NO_MODIFICATION_ALLOWED_ERR: DOM Exception 7.
    39 PASS left.setFloatValue(CSSPrimitiveValue.CSS_PX, 25) threw exception Error: NO_MODIFICATION_ALLOWED_ERR: DOM Exception 7.
    40 PASS left.setFloatValue(CSSPrimitiveValue.CSS_UNKNOWN, 25) threw exception Error: NO_MODIFICATION_ALLOWED_ERR: DOM Exception 7.
    41 PASS left.setFloatValue(CSSPrimitiveValue.CSS_STRING, 25) threw exception Error: NO_MODIFICATION_ALLOWED_ERR: DOM Exception 7.
     37PASS left.setFloatValue(CSSPrimitiveValue.CSS_NUMBER, 25) threw exception Error: NoModificationAllowedError: DOM Exception 7.
     38PASS left.setFloatValue(CSSPrimitiveValue.CSS_DIMENSION, 25) threw exception Error: NoModificationAllowedError: DOM Exception 7.
     39PASS left.setFloatValue(CSSPrimitiveValue.CSS_PX, 25) threw exception Error: NoModificationAllowedError: DOM Exception 7.
     40PASS left.setFloatValue(CSSPrimitiveValue.CSS_UNKNOWN, 25) threw exception Error: NoModificationAllowedError: DOM Exception 7.
     41PASS left.setFloatValue(CSSPrimitiveValue.CSS_STRING, 25) threw exception Error: NoModificationAllowedError: DOM Exception 7.
    4242PASS left.getFloatValue(CSSPrimitiveValue.CSS_UNKNOWN) threw exception Error: INVALID_ACCESS_ERR: DOM Exception 15.
    4343PASS left.getFloatValue(CSSPrimitiveValue.CSS_STRING) threw exception Error: INVALID_ACCESS_ERR: DOM Exception 15.
  • trunk/LayoutTests/platform/chromium-win/fast/dom/setPrimitiveValue-exceptions-expected.txt

    r108173 r134785  
    77PASS left.getFloatValue(CSSPrimitiveValue.CSS_DIMENSION) is 10
    88PASS left.getFloatValue(CSSPrimitiveValue.CSS_PX) is 10
    9 PASS left.setFloatValue(CSSPrimitiveValue.CSS_NUMBER, 25) threw exception Error: NO_MODIFICATION_ALLOWED_ERR: DOM Exception 7.
    10 PASS left.setFloatValue(CSSPrimitiveValue.CSS_DIMENSION, 25) threw exception Error: NO_MODIFICATION_ALLOWED_ERR: DOM Exception 7.
    11 PASS left.setFloatValue(CSSPrimitiveValue.CSS_PX, 25) threw exception Error: NO_MODIFICATION_ALLOWED_ERR: DOM Exception 7.
    12 PASS left.setFloatValue(CSSPrimitiveValue.CSS_UNKNOWN, 25) threw exception Error: NO_MODIFICATION_ALLOWED_ERR: DOM Exception 7.
    13 PASS left.setFloatValue(CSSPrimitiveValue.CSS_STRING, 25) threw exception Error: NO_MODIFICATION_ALLOWED_ERR: DOM Exception 7.
     9PASS left.setFloatValue(CSSPrimitiveValue.CSS_NUMBER, 25) threw exception Error: NoModificationAllowedError: DOM Exception 7.
     10PASS left.setFloatValue(CSSPrimitiveValue.CSS_DIMENSION, 25) threw exception Error: NoModificationAllowedError: DOM Exception 7.
     11PASS left.setFloatValue(CSSPrimitiveValue.CSS_PX, 25) threw exception Error: NoModificationAllowedError: DOM Exception 7.
     12PASS left.setFloatValue(CSSPrimitiveValue.CSS_UNKNOWN, 25) threw exception Error: NoModificationAllowedError: DOM Exception 7.
     13PASS left.setFloatValue(CSSPrimitiveValue.CSS_STRING, 25) threw exception Error: NoModificationAllowedError: DOM Exception 7.
    1414PASS left.getFloatValue(CSSPrimitiveValue.CSS_UNKNOWN) threw exception Error: INVALID_ACCESS_ERR: DOM Exception 15.
    1515PASS left.getFloatValue(CSSPrimitiveValue.CSS_STRING) threw exception Error: INVALID_ACCESS_ERR: DOM Exception 15.
     
    2222PASS left.getFloatValue(CSSPrimitiveValue.CSS_PX) is 10
    2323PASS fontFamily.getStringValue() is "Times"
    24 PASS fontFamily.setStringValue(CSSPrimitiveValue.CSS_STRING, 'Hi there!') threw exception Error: NO_MODIFICATION_ALLOWED_ERR: DOM Exception 7.
    25 PASS fontFamily.setStringValue(CSSPrimitiveValue.CSS_ATTR, "G'day!") threw exception Error: NO_MODIFICATION_ALLOWED_ERR: DOM Exception 7.
    26 PASS fontFamily.setStringValue(CSSPrimitiveValue.CSS_UNKNOWN, 'Hi there!') threw exception Error: NO_MODIFICATION_ALLOWED_ERR: DOM Exception 7.
    27 PASS fontFamily.setStringValue(CSSPrimitiveValue.CSS_DIMENSION, "G'day!") threw exception Error: NO_MODIFICATION_ALLOWED_ERR: DOM Exception 7.
    28 PASS fontFamily.setStringValue(CSSPrimitiveValue.CSS_COUNTER, 'Hello, world!') threw exception Error: NO_MODIFICATION_ALLOWED_ERR: DOM Exception 7.
     24PASS fontFamily.setStringValue(CSSPrimitiveValue.CSS_STRING, 'Hi there!') threw exception Error: NoModificationAllowedError: DOM Exception 7.
     25PASS fontFamily.setStringValue(CSSPrimitiveValue.CSS_ATTR, "G'day!") threw exception Error: NoModificationAllowedError: DOM Exception 7.
     26PASS fontFamily.setStringValue(CSSPrimitiveValue.CSS_UNKNOWN, 'Hi there!') threw exception Error: NoModificationAllowedError: DOM Exception 7.
     27PASS fontFamily.setStringValue(CSSPrimitiveValue.CSS_DIMENSION, "G'day!") threw exception Error: NoModificationAllowedError: DOM Exception 7.
     28PASS fontFamily.setStringValue(CSSPrimitiveValue.CSS_COUNTER, 'Hello, world!') threw exception Error: NoModificationAllowedError: DOM Exception 7.
    2929PASS fontFamily.getFloatValue() threw exception Error: INVALID_ACCESS_ERR: DOM Exception 15.
    3030PASS fontFamily.getCounterValue() threw exception Error: INVALID_ACCESS_ERR: DOM Exception 15.
     
    3535PASS left.getFloatValue(CSSPrimitiveValue.CSS_DIMENSION) is 10
    3636PASS left.getFloatValue(CSSPrimitiveValue.CSS_PX) is 10
    37 PASS left.setFloatValue(CSSPrimitiveValue.CSS_NUMBER, 25) threw exception Error: NO_MODIFICATION_ALLOWED_ERR: DOM Exception 7.
    38 PASS left.setFloatValue(CSSPrimitiveValue.CSS_DIMENSION, 25) threw exception Error: NO_MODIFICATION_ALLOWED_ERR: DOM Exception 7.
    39 PASS left.setFloatValue(CSSPrimitiveValue.CSS_PX, 25) threw exception Error: NO_MODIFICATION_ALLOWED_ERR: DOM Exception 7.
    40 PASS left.setFloatValue(CSSPrimitiveValue.CSS_UNKNOWN, 25) threw exception Error: NO_MODIFICATION_ALLOWED_ERR: DOM Exception 7.
    41 PASS left.setFloatValue(CSSPrimitiveValue.CSS_STRING, 25) threw exception Error: NO_MODIFICATION_ALLOWED_ERR: DOM Exception 7.
     37PASS left.setFloatValue(CSSPrimitiveValue.CSS_NUMBER, 25) threw exception Error: NoModificationAllowedError: DOM Exception 7.
     38PASS left.setFloatValue(CSSPrimitiveValue.CSS_DIMENSION, 25) threw exception Error: NoModificationAllowedError: DOM Exception 7.
     39PASS left.setFloatValue(CSSPrimitiveValue.CSS_PX, 25) threw exception Error: NoModificationAllowedError: DOM Exception 7.
     40PASS left.setFloatValue(CSSPrimitiveValue.CSS_UNKNOWN, 25) threw exception Error: NoModificationAllowedError: DOM Exception 7.
     41PASS left.setFloatValue(CSSPrimitiveValue.CSS_STRING, 25) threw exception Error: NoModificationAllowedError: DOM Exception 7.
    4242PASS left.getFloatValue(CSSPrimitiveValue.CSS_UNKNOWN) threw exception Error: INVALID_ACCESS_ERR: DOM Exception 15.
    4343PASS left.getFloatValue(CSSPrimitiveValue.CSS_STRING) threw exception Error: INVALID_ACCESS_ERR: DOM Exception 15.
  • trunk/LayoutTests/platform/chromium-win/svg/custom/baseval-animval-equality-expected.txt

    r75351 r134785  
    3131              text run at (0,0) width 186: "setting svg.x.animVal.value = 5"
    3232          RenderBlock {div} at (0,160) size 600x20
    33             RenderText {#text} at (0,0) size 497x19
    34               text run at (0,0) width 497: "caught exception: NO_MODIFICATION_ALLOWED_ERR: DOM Exception 7"
     33            RenderText {#text} at (0,0) size 407x19
     34              text run at (0,0) width 407: "caught exception: NoModificationAllowedError: DOM Exception 7"
    3535          RenderBlock {div} at (0,180) size 600x20
    3636            RenderText {#text} at (0,0) size 152x19
  • trunk/LayoutTests/platform/chromium/fast/dom/insertAdjacentHTML-DocumentFragment-crash-expected.txt

    r104454 r134785  
    1 CONSOLE MESSAGE: line 9: Uncaught Error: NO_MODIFICATION_ALLOWED_ERR: DOM Exception 7
     1CONSOLE MESSAGE: line 9: Uncaught Error: NoModificationAllowedError: DOM Exception 7
    22This test passes if it doesn't crash (or ASSERT).
  • trunk/LayoutTests/platform/chromium/svg/custom/baseval-animval-equality-expected.txt

    r131696 r134785  
    3232          RenderBlock {div} at (0,144) size 600x18
    3333            RenderText {#text} at (0,0) size 521x18
    34               text run at (0,0) width 521: "caught exception: NO_MODIFICATION_ALLOWED_ERR: DOM Exception 7"
     34              text run at (0,0) width 521: "caught exception: NoModificationAllowedError: DOM Exception 7"
    3535          RenderBlock {div} at (0,162) size 600x18
    3636            RenderText {#text} at (0,0) size 160x18
  • trunk/LayoutTests/platform/gtk/svg/custom/baseval-animval-equality-expected.txt

    r114836 r134785  
    3232          RenderBlock {div} at (0,144) size 600x18
    3333            RenderText {#text} at (0,0) size 521x19
    34               text run at (0,0) width 521: "caught exception: NO_MODIFICATION_ALLOWED_ERR: DOM Exception 7"
     34              text run at (0,0) width 521: "caught exception: NoModificationAllowedError: DOM Exception 7"
    3535          RenderBlock {div} at (0,162) size 600x18
    3636            RenderText {#text} at (0,0) size 160x19
  • trunk/LayoutTests/platform/mac/svg/custom/baseval-animval-equality-expected.txt

    r75351 r134785  
    3232          RenderBlock {div} at (0,144) size 600x18
    3333            RenderText {#text} at (0,0) size 521x18
    34               text run at (0,0) width 521: "caught exception: NO_MODIFICATION_ALLOWED_ERR: DOM Exception 7"
     34              text run at (0,0) width 521: "caught exception: NoModificationAllowedError: DOM Exception 7"
    3535          RenderBlock {div} at (0,162) size 600x18
    3636            RenderText {#text} at (0,0) size 160x18
  • trunk/LayoutTests/platform/qt/svg/custom/baseval-animval-equality-expected.txt

    r123896 r134785  
    3232          RenderBlock {div} at (0,152) size 600x19
    3333            RenderText {#text} at (0,0) size 497x19
    34               text run at (0,0) width 497: "caught exception: NO_MODIFICATION_ALLOWED_ERR: DOM Exception 7"
     34              text run at (0,0) width 497: "caught exception: NoModificationAllowedError: DOM Exception 7"
    3535          RenderBlock {div} at (0,171) size 600x19
    3636            RenderText {#text} at (0,0) size 152x19
  • trunk/LayoutTests/platform/qt/svg/dom/altGlyph-dom-expected.txt

    r117260 r134785  
    88PASS altGlyph.namespaceURI is "http://www.w3.org/2000/svg"
    99PASS altGlyph.format is "image/svg+xml"
    10 PASS altGlyph.format = 'x' threw exception Error: NO_MODIFICATION_ALLOWED_ERR: DOM Exception 7.
     10PASS altGlyph.format = 'x' threw exception Error: NoModificationAllowedError: DOM Exception 7.
    1111PASS altGlyph.getStartPositionOfChar(0).x is 0
    1212PASS successfullyParsed is true
  • trunk/LayoutTests/svg/animations/animate-gradient-transform-expected.txt

    r110838 r134785  
    66
    77
    8 PASS gradient.gradientTransform.animVal.consolidate() threw exception Error: NO_MODIFICATION_ALLOWED_ERR: DOM Exception 7.
     8PASS gradient.gradientTransform.animVal.consolidate() threw exception Error: NoModificationAllowedError: DOM Exception 7.
    99PASS gradient.gradientTransform.animVal.numberOfItems is 1
    1010PASS gradient.gradientTransform.animVal.getItem(0).matrix.e is 0
  • trunk/LayoutTests/svg/dom/SVGColor-expected.txt

    r99749 r134785  
    1616
    1717Try invalid arguments for setColor()
    18 PASS stopColor.setColor(null, null, null) threw exception Error: NO_MODIFICATION_ALLOWED_ERR: DOM Exception 7.
    19 PASS stopColor.setColor(SVGColor.SVG_COLORTYPE_RGBCOLOR, svgElement, ''); threw exception Error: NO_MODIFICATION_ALLOWED_ERR: DOM Exception 7.
    20 PASS stopColor.setColor(SVGColor.SVG_COLORTYPE_RGBCOLOR, '', '') threw exception Error: NO_MODIFICATION_ALLOWED_ERR: DOM Exception 7.
    21 PASS stopColor.setColor(SVGColor.SVG_COLORTYPE_CURRENTCOLOR + 1, '', ''); threw exception Error: NO_MODIFICATION_ALLOWED_ERR: DOM Exception 7.
     18PASS stopColor.setColor(null, null, null) threw exception Error: NoModificationAllowedError: DOM Exception 7.
     19PASS stopColor.setColor(SVGColor.SVG_COLORTYPE_RGBCOLOR, svgElement, ''); threw exception Error: NoModificationAllowedError: DOM Exception 7.
     20PASS stopColor.setColor(SVGColor.SVG_COLORTYPE_RGBCOLOR, '', '') threw exception Error: NoModificationAllowedError: DOM Exception 7.
     21PASS stopColor.setColor(SVGColor.SVG_COLORTYPE_CURRENTCOLOR + 1, '', ''); threw exception Error: NoModificationAllowedError: DOM Exception 7.
    2222PASS stopColor.setColor() threw exception TypeError: Not enough arguments.
    2323PASS stopColor.setColor(stopColor) threw exception TypeError: Not enough arguments.
     
    3030
    3131Test using setColor() and SVG_COLORTYPE_UNKNOWN
    32 PASS stopColor.setColor(SVGColor.SVG_COLORTYPE_UNKKNOWN, '', '') threw exception Error: NO_MODIFICATION_ALLOWED_ERR: DOM Exception 7.
    33 PASS stopColor.setColor(SVGColor.SVG_COLORTYPE_UNKKNOWN, 'rgb(0,128,128)', '') threw exception Error: NO_MODIFICATION_ALLOWED_ERR: DOM Exception 7.
    34 PASS stopColor.setColor(SVGColor.SVG_COLORTYPE_UNKKNOWN, '', 'icc-color(myRGB, 0, 1, 2)') threw exception Error: NO_MODIFICATION_ALLOWED_ERR: DOM Exception 7.
    35 PASS stopColor.setColor(SVGColor.SVG_COLORTYPE_UNKKNOWN, 'rgb(0,0,0)', 'icc-color(myRGB, 0, 1, 2)') threw exception Error: NO_MODIFICATION_ALLOWED_ERR: DOM Exception 7.
     32PASS stopColor.setColor(SVGColor.SVG_COLORTYPE_UNKKNOWN, '', '') threw exception Error: NoModificationAllowedError: DOM Exception 7.
     33PASS stopColor.setColor(SVGColor.SVG_COLORTYPE_UNKKNOWN, 'rgb(0,128,128)', '') threw exception Error: NoModificationAllowedError: DOM Exception 7.
     34PASS stopColor.setColor(SVGColor.SVG_COLORTYPE_UNKKNOWN, '', 'icc-color(myRGB, 0, 1, 2)') threw exception Error: NoModificationAllowedError: DOM Exception 7.
     35PASS stopColor.setColor(SVGColor.SVG_COLORTYPE_UNKKNOWN, 'rgb(0,0,0)', 'icc-color(myRGB, 0, 1, 2)') threw exception Error: NoModificationAllowedError: DOM Exception 7.
    3636
    3737Test using setColor() and SVG_COLORTYPE_RGBCOLOR_ICCCOLOR
    38 PASS stopColor.setColor(SVGColor.SVG_COLORTYPE_RGBCOLOR_ICCCOLOR, 'rgb(77,0,77)', 'icc-color(myRGB, 0, 1, 2)') threw exception Error: NO_MODIFICATION_ALLOWED_ERR: DOM Exception 7.
     38PASS stopColor.setColor(SVGColor.SVG_COLORTYPE_RGBCOLOR_ICCCOLOR, 'rgb(77,0,77)', 'icc-color(myRGB, 0, 1, 2)') threw exception Error: NoModificationAllowedError: DOM Exception 7.
    3939PASS stopColor.colorType is SVGColor.SVG_COLORTYPE_RGBCOLOR
    4040PASS stopColor.colorType is SVGColor.SVG_COLORTYPE_RGBCOLOR
     
    4747
    4848Test using setColor() and SVG_COLORTYPE_CURRENTCOLOR
    49 PASS stopColor.setColor(SVGColor.SVG_COLORTYPE_CURRENTCOLOR, 'rgb(77,0,77)', 'icc-color(myRGB, 0, 1, 2)') threw exception Error: NO_MODIFICATION_ALLOWED_ERR: DOM Exception 7.
     49PASS stopColor.setColor(SVGColor.SVG_COLORTYPE_CURRENTCOLOR, 'rgb(77,0,77)', 'icc-color(myRGB, 0, 1, 2)') threw exception Error: NoModificationAllowedError: DOM Exception 7.
    5050PASS stopColor.colorType is SVGColor.SVG_COLORTYPE_RGBCOLOR
    5151PASS stopColor.colorType is SVGColor.SVG_COLORTYPE_RGBCOLOR
     
    5858
    5959Test using setColor() and SVG_COLORTYPE_RGBCOLOR
    60 PASS stopColor.setColor(SVGColor.SVG_COLORTYPE_RGBCOLOR, 'rgb(0,77,0)', 'icc-color(myRGB, 0, 1, 2)') threw exception Error: NO_MODIFICATION_ALLOWED_ERR: DOM Exception 7.
     60PASS stopColor.setColor(SVGColor.SVG_COLORTYPE_RGBCOLOR, 'rgb(0,77,0)', 'icc-color(myRGB, 0, 1, 2)') threw exception Error: NoModificationAllowedError: DOM Exception 7.
    6161PASS stopColor.colorType is SVGColor.SVG_COLORTYPE_RGBCOLOR
    6262PASS stopColor.colorType is SVGColor.SVG_COLORTYPE_RGBCOLOR
  • trunk/LayoutTests/svg/dom/SVGLengthList-basics-expected.txt

    r134613 r134785  
    118118
    119119Testing animVal clear throws
    120 PASS text1.x.animVal.clear() threw exception Error: NO_MODIFICATION_ALLOWED_ERR: DOM Exception 7.
     120PASS text1.x.animVal.clear() threw exception Error: NoModificationAllowedError: DOM Exception 7.
    121121PASS text1.x.baseVal.clear() is undefined.
    122122PASS successfullyParsed is true
  • trunk/LayoutTests/svg/dom/SVGNumberList-basics-expected.txt

    r134613 r134785  
    119119
    120120Testing animVal clear throws
    121 PASS text1.rotate.animVal.clear() threw exception Error: NO_MODIFICATION_ALLOWED_ERR: DOM Exception 7.
     121PASS text1.rotate.animVal.clear() threw exception Error: NoModificationAllowedError: DOM Exception 7.
    122122PASS text1.rotate.baseVal.clear() is undefined.
    123123PASS successfullyParsed is true
  • trunk/LayoutTests/svg/dom/SVGPaint-expected.txt

    r99749 r134785  
    1818
    1919Try invalid arguments for setPaint()
    20 PASS fillPaint.setPaint(null, null, null, null) threw exception Error: NO_MODIFICATION_ALLOWED_ERR: DOM Exception 7.
    21 PASS fillPaint.setPaint(SVGPaint.SVG_PAINTTYPE_RGBCOLOR, svgElement, '', ''); threw exception Error: NO_MODIFICATION_ALLOWED_ERR: DOM Exception 7.
     20PASS fillPaint.setPaint(null, null, null, null) threw exception Error: NoModificationAllowedError: DOM Exception 7.
     21PASS fillPaint.setPaint(SVGPaint.SVG_PAINTTYPE_RGBCOLOR, svgElement, '', ''); threw exception Error: NoModificationAllowedError: DOM Exception 7.
    2222PASS fillPaint.setPaint(SVGPaint.SVG_PAINTTYPE_RGBCOLOR, '', '') threw exception TypeError: Not enough arguments.
    23 PASS fillPaint.setPaint(SVGPaint.SVG_PAINTTYPE_RGBCOLOR_ICCCOLOR + 1, '', '', ''); threw exception Error: NO_MODIFICATION_ALLOWED_ERR: DOM Exception 7.
    24 PASS fillPaint.setPaint(SVGPaint.SVG_PAINTTYPE_NONE - 1, '', '', ''); threw exception Error: NO_MODIFICATION_ALLOWED_ERR: DOM Exception 7.
    25 PASS fillPaint.setPaint(SVGPaint.SVG_PAINTTYPE_URI + 1, '', '', ''); threw exception Error: NO_MODIFICATION_ALLOWED_ERR: DOM Exception 7.
     23PASS fillPaint.setPaint(SVGPaint.SVG_PAINTTYPE_RGBCOLOR_ICCCOLOR + 1, '', '', ''); threw exception Error: NoModificationAllowedError: DOM Exception 7.
     24PASS fillPaint.setPaint(SVGPaint.SVG_PAINTTYPE_NONE - 1, '', '', ''); threw exception Error: NoModificationAllowedError: DOM Exception 7.
     25PASS fillPaint.setPaint(SVGPaint.SVG_PAINTTYPE_URI + 1, '', '', ''); threw exception Error: NoModificationAllowedError: DOM Exception 7.
    2626PASS fillPaint.setPaint() threw exception TypeError: Not enough arguments.
    2727PASS fillPaint.setPaint(fillPaint) threw exception TypeError: Not enough arguments.
     
    3737
    3838Test using setPaint() and SVG_PAINTTYPE_UNKNOWN
    39 PASS fillPaint.setPaint(SVGPaint.SVG_PAINTTYPE_UNKKNOWN, '', '', '') threw exception Error: NO_MODIFICATION_ALLOWED_ERR: DOM Exception 7.
    40 PASS fillPaint.setPaint(SVGPaint.SVG_PAINTTYPE_UNKKNOWN, 'url(#foo)', '', '') threw exception Error: NO_MODIFICATION_ALLOWED_ERR: DOM Exception 7.
    41 PASS fillPaint.setPaint(SVGPaint.SVG_PAINTTYPE_UNKKNOWN, '', 'rgb(0,128,128)', '') threw exception Error: NO_MODIFICATION_ALLOWED_ERR: DOM Exception 7.
    42 PASS fillPaint.setPaint(SVGPaint.SVG_PAINTTYPE_UNKKNOWN, '', '', 'icc-color(myRGB, 0, 1, 2)') threw exception Error: NO_MODIFICATION_ALLOWED_ERR: DOM Exception 7.
    43 PASS fillPaint.setPaint(SVGPaint.SVG_PAINTTYPE_UNKKNOWN, 'url(#foo)', 'rgb(0,0,0)', 'icc-color(myRGB, 0, 1, 2)') threw exception Error: NO_MODIFICATION_ALLOWED_ERR: DOM Exception 7.
     39PASS fillPaint.setPaint(SVGPaint.SVG_PAINTTYPE_UNKKNOWN, '', '', '') threw exception Error: NoModificationAllowedError: DOM Exception 7.
     40PASS fillPaint.setPaint(SVGPaint.SVG_PAINTTYPE_UNKKNOWN, 'url(#foo)', '', '') threw exception Error: NoModificationAllowedError: DOM Exception 7.
     41PASS fillPaint.setPaint(SVGPaint.SVG_PAINTTYPE_UNKKNOWN, '', 'rgb(0,128,128)', '') threw exception Error: NoModificationAllowedError: DOM Exception 7.
     42PASS fillPaint.setPaint(SVGPaint.SVG_PAINTTYPE_UNKKNOWN, '', '', 'icc-color(myRGB, 0, 1, 2)') threw exception Error: NoModificationAllowedError: DOM Exception 7.
     43PASS fillPaint.setPaint(SVGPaint.SVG_PAINTTYPE_UNKKNOWN, 'url(#foo)', 'rgb(0,0,0)', 'icc-color(myRGB, 0, 1, 2)') threw exception Error: NoModificationAllowedError: DOM Exception 7.
    4444
    4545Test using setPaint() and SVG_PAINTTYPE_NONE - a
    46 PASS fillPaint.setPaint(SVGPaint.SVG_PAINTTYPE_NONE, '', '', '') threw exception Error: NO_MODIFICATION_ALLOWED_ERR: DOM Exception 7.
     46PASS fillPaint.setPaint(SVGPaint.SVG_PAINTTYPE_NONE, '', '', '') threw exception Error: NoModificationAllowedError: DOM Exception 7.
    4747PASS fillPaint.paintType is SVGPaint.SVG_PAINTTYPE_RGBCOLOR
    4848PASS rectElement.style.fill is "#008000"
     
    5656
    5757Test using setPaint() and SVG_PAINTTYPE_NONE - b
    58 PASS fillPaint.setPaint(SVGPaint.SVG_PAINTTYPE_NONE, 'url(#foo)', '', '') threw exception Error: NO_MODIFICATION_ALLOWED_ERR: DOM Exception 7.
     58PASS fillPaint.setPaint(SVGPaint.SVG_PAINTTYPE_NONE, 'url(#foo)', '', '') threw exception Error: NoModificationAllowedError: DOM Exception 7.
    5959PASS fillPaint.paintType is SVGPaint.SVG_PAINTTYPE_RGBCOLOR
    6060PASS rectElement.style.fill is "#008000"
     
    6868
    6969Test using setPaint() and SVG_PAINTTYPE_NONE - c
    70 PASS fillPaint.setPaint(SVGPaint.SVG_PAINTTYPE_NONE, '', 'rgb(0,128,128)', '') threw exception Error: NO_MODIFICATION_ALLOWED_ERR: DOM Exception 7.
     70PASS fillPaint.setPaint(SVGPaint.SVG_PAINTTYPE_NONE, '', 'rgb(0,128,128)', '') threw exception Error: NoModificationAllowedError: DOM Exception 7.
    7171PASS fillPaint.paintType is SVGPaint.SVG_PAINTTYPE_RGBCOLOR
    7272PASS rectElement.style.fill is "#008000"
     
    8080
    8181Test using setPaint() and SVG_PAINTTYPE_NONE - d
    82 PASS fillPaint.setPaint(SVGPaint.SVG_PAINTTYPE_NONE, '', '', 'icc-color(myRGB, 0, 1, 2)') threw exception Error: NO_MODIFICATION_ALLOWED_ERR: DOM Exception 7.
     82PASS fillPaint.setPaint(SVGPaint.SVG_PAINTTYPE_NONE, '', '', 'icc-color(myRGB, 0, 1, 2)') threw exception Error: NoModificationAllowedError: DOM Exception 7.
    8383PASS fillPaint.paintType is SVGPaint.SVG_PAINTTYPE_RGBCOLOR
    8484PASS rectElement.style.fill is "#008000"
     
    9292
    9393Test using setPaint() and SVG_PAINTTYPE_NONE - e
    94 PASS fillPaint.setPaint(SVGPaint.SVG_PAINTTYPE_NONE, 'url(#foo)', 'rgb(0,0,0)', 'icc-color(myRGB, 0, 1, 2)') threw exception Error: NO_MODIFICATION_ALLOWED_ERR: DOM Exception 7.
     94PASS fillPaint.setPaint(SVGPaint.SVG_PAINTTYPE_NONE, 'url(#foo)', 'rgb(0,0,0)', 'icc-color(myRGB, 0, 1, 2)') threw exception Error: NoModificationAllowedError: DOM Exception 7.
    9595PASS rectElement.style.fill is "#008000"
    9696PASS document.defaultView.getComputedStyle(rectElement).fill is "#008000"
    9797
    9898Test using setPaint() and SVG_PAINTTYPE_URI - a
    99 PASS fillPaint.setPaint(SVGPaint.SVG_PAINTTYPE_URI, '', '', '') threw exception Error: NO_MODIFICATION_ALLOWED_ERR: DOM Exception 7.
     99PASS fillPaint.setPaint(SVGPaint.SVG_PAINTTYPE_URI, '', '', '') threw exception Error: NoModificationAllowedError: DOM Exception 7.
    100100PASS fillPaint.paintType is SVGPaint.SVG_PAINTTYPE_RGBCOLOR
    101101PASS rectElement.style.fill is "#008000"
     
    103103
    104104Test using setPaint() and SVG_PAINTTYPE_URI - b
    105 PASS fillPaint.setPaint(SVGPaint.SVG_PAINTTYPE_URI, '', 'rgb(0,128,128)', '') threw exception Error: NO_MODIFICATION_ALLOWED_ERR: DOM Exception 7.
     105PASS fillPaint.setPaint(SVGPaint.SVG_PAINTTYPE_URI, '', 'rgb(0,128,128)', '') threw exception Error: NoModificationAllowedError: DOM Exception 7.
    106106PASS fillPaint.paintType is SVGPaint.SVG_PAINTTYPE_RGBCOLOR
    107107PASS rectElement.style.fill is "#008000"
     
    109109
    110110Test using setPaint() and SVG_PAINTTYPE_URI - c
    111 PASS fillPaint.setPaint(SVGPaint.SVG_PAINTTYPE_URI, '', '', 'icc-color(myRGB, 0, 1, 2)') threw exception Error: NO_MODIFICATION_ALLOWED_ERR: DOM Exception 7.
     111PASS fillPaint.setPaint(SVGPaint.SVG_PAINTTYPE_URI, '', '', 'icc-color(myRGB, 0, 1, 2)') threw exception Error: NoModificationAllowedError: DOM Exception 7.
    112112PASS fillPaint.paintType is SVGPaint.SVG_PAINTTYPE_RGBCOLOR
    113113PASS rectElement.style.fill is "#008000"
     
    115115
    116116Test using setPaint() and SVG_PAINTTYPE_URI - d
    117 PASS fillPaint.setPaint(SVGPaint.SVG_PAINTTYPE_URI, 'url(#test)', '', '') threw exception Error: NO_MODIFICATION_ALLOWED_ERR: DOM Exception 7.
     117PASS fillPaint.setPaint(SVGPaint.SVG_PAINTTYPE_URI, 'url(#test)', '', '') threw exception Error: NoModificationAllowedError: DOM Exception 7.
    118118PASS fillPaint.paintType is SVGPaint.SVG_PAINTTYPE_RGBCOLOR
    119119PASS fillPaint.uri is ""
     
    133133
    134134Test using setPaint() and SVG_PAINTTYPE_URI - e
    135 PASS fillPaint.setPaint(SVGPaint.SVG_PAINTTYPE_URI, 'url(#foo)', 'rgb(0,0,0)', 'icc-color(myRGB, 0, 1, 2)') threw exception Error: NO_MODIFICATION_ALLOWED_ERR: DOM Exception 7.
     135PASS fillPaint.setPaint(SVGPaint.SVG_PAINTTYPE_URI, 'url(#foo)', 'rgb(0,0,0)', 'icc-color(myRGB, 0, 1, 2)') threw exception Error: NoModificationAllowedError: DOM Exception 7.
    136136PASS fillPaint.paintType is SVGPaint.SVG_PAINTTYPE_RGBCOLOR
    137137PASS fillPaint.uri is ""
     
    145145
    146146Test using setPaint() and SVG_PAINTTYPE_URI_NONE
    147 PASS fillPaint.setPaint(SVGPaint.SVG_PAINTTYPE_URI_NONE, 'url(#test)', 'rgb(0,0,0)', 'icc-color(myRGB, 0, 1, 2)') threw exception Error: NO_MODIFICATION_ALLOWED_ERR: DOM Exception 7.
     147PASS fillPaint.setPaint(SVGPaint.SVG_PAINTTYPE_URI_NONE, 'url(#test)', 'rgb(0,0,0)', 'icc-color(myRGB, 0, 1, 2)') threw exception Error: NoModificationAllowedError: DOM Exception 7.
    148148PASS fillPaint.paintType is SVGPaint.SVG_PAINTTYPE_RGBCOLOR
    149149PASS fillPaint.uri is ""
     
    157157
    158158Test using setPaint() and SVG_PAINTTYPE_URI_CURRENTCOLOR
    159 PASS fillPaint.setPaint(SVGPaint.SVG_PAINTTYPE_URI_CURRENTCOLOR, 'url(#foo)', 'rgb(0,0,0)', 'icc-color(myRGB, 0, 1, 2)') threw exception Error: NO_MODIFICATION_ALLOWED_ERR: DOM Exception 7.
     159PASS fillPaint.setPaint(SVGPaint.SVG_PAINTTYPE_URI_CURRENTCOLOR, 'url(#foo)', 'rgb(0,0,0)', 'icc-color(myRGB, 0, 1, 2)') threw exception Error: NoModificationAllowedError: DOM Exception 7.
    160160PASS fillPaint.paintType is SVGPaint.SVG_PAINTTYPE_RGBCOLOR
    161161PASS fillPaint.uri is ""
     
    169169
    170170Test using setPaint() and SVG_PAINTTYPE_URI_RGBCOLOR
    171 PASS fillPaint.setPaint(SVGPaint.SVG_PAINTTYPE_URI_RGBCOLOR, 'url(#test)', 'rgb(77,0,77)', 'icc-color(myRGB, 0, 1, 2)') threw exception Error: NO_MODIFICATION_ALLOWED_ERR: DOM Exception 7.
     171PASS fillPaint.setPaint(SVGPaint.SVG_PAINTTYPE_URI_RGBCOLOR, 'url(#test)', 'rgb(77,0,77)', 'icc-color(myRGB, 0, 1, 2)') threw exception Error: NoModificationAllowedError: DOM Exception 7.
    172172PASS fillPaint.paintType is SVGPaint.SVG_PAINTTYPE_RGBCOLOR
    173173PASS fillPaint.uri is ""
     
    181181
    182182Test using setPaint() and SVG_PAINTTYPE_URI_RGBCOLOR_ICCCOLOR
    183 PASS fillPaint.setPaint(SVGPaint.SVG_PAINTTYPE_URI_RGBCOLOR_ICCCOLOR, 'url(#foo)', 'rgb(77,0,77)', 'icc-color(myRGB, 0, 1, 2)') threw exception Error: NO_MODIFICATION_ALLOWED_ERR: DOM Exception 7.
     183PASS fillPaint.setPaint(SVGPaint.SVG_PAINTTYPE_URI_RGBCOLOR_ICCCOLOR, 'url(#foo)', 'rgb(77,0,77)', 'icc-color(myRGB, 0, 1, 2)') threw exception Error: NoModificationAllowedError: DOM Exception 7.
    184184PASS fillPaint.paintType is SVGPaint.SVG_PAINTTYPE_RGBCOLOR
    185185PASS fillPaint.uri is ""
     
    193193
    194194Test using setPaint() and SVG_PAINTTYPE_RGBCOLOR_ICCCOLOR
    195 PASS fillPaint.setPaint(SVGPaint.SVG_PAINTTYPE_RGBCOLOR_ICCCOLOR, 'url(#test)', 'rgb(77,0,77)', 'icc-color(myRGB, 0, 1, 2)') threw exception Error: NO_MODIFICATION_ALLOWED_ERR: DOM Exception 7.
     195PASS fillPaint.setPaint(SVGPaint.SVG_PAINTTYPE_RGBCOLOR_ICCCOLOR, 'url(#test)', 'rgb(77,0,77)', 'icc-color(myRGB, 0, 1, 2)') threw exception Error: NoModificationAllowedError: DOM Exception 7.
    196196PASS fillPaint.paintType is SVGPaint.SVG_PAINTTYPE_RGBCOLOR
    197197PASS fillPaint.uri is ""
     
    205205
    206206Test using setPaint() and SVG_PAINTTYPE_CURRENTCOLOR
    207 PASS fillPaint.setPaint(SVGPaint.SVG_PAINTTYPE_CURRENTCOLOR, 'url(#foo)', 'rgb(77,0,77)', 'icc-color(myRGB, 0, 1, 2)') threw exception Error: NO_MODIFICATION_ALLOWED_ERR: DOM Exception 7.
     207PASS fillPaint.setPaint(SVGPaint.SVG_PAINTTYPE_CURRENTCOLOR, 'url(#foo)', 'rgb(77,0,77)', 'icc-color(myRGB, 0, 1, 2)') threw exception Error: NoModificationAllowedError: DOM Exception 7.
    208208PASS fillPaint.paintType is SVGPaint.SVG_PAINTTYPE_RGBCOLOR
    209209PASS fillPaint.uri is ""
     
    217217
    218218Test using setPaint() and SVG_PAINTTYPE_RGBCOLOR
    219 PASS fillPaint.setPaint(SVGPaint.SVG_PAINTTYPE_RGBCOLOR, 'url(#test)', 'rgb(0,77,0)', 'icc-color(myRGB, 0, 1, 2)') threw exception Error: NO_MODIFICATION_ALLOWED_ERR: DOM Exception 7.
     219PASS fillPaint.setPaint(SVGPaint.SVG_PAINTTYPE_RGBCOLOR, 'url(#test)', 'rgb(0,77,0)', 'icc-color(myRGB, 0, 1, 2)') threw exception Error: NoModificationAllowedError: DOM Exception 7.
    220220PASS fillPaint.paintType is SVGPaint.SVG_PAINTTYPE_RGBCOLOR
    221221PASS fillPaint.uri is ""
  • trunk/LayoutTests/svg/dom/SVGTransformList-basics-expected.txt

    r134613 r134785  
    117117
    118118Testing animVal clear throws
    119 PASS circle1.transform.animVal.clear() threw exception Error: NO_MODIFICATION_ALLOWED_ERR: DOM Exception 7.
     119PASS circle1.transform.animVal.clear() threw exception Error: NoModificationAllowedError: DOM Exception 7.
    120120PASS circle1.transform.baseVal.clear() is undefined.
    121121
  • trunk/LayoutTests/svg/dom/SVGViewSpec-defaults-expected.txt

    r118735 r134785  
    2222
    2323Try changing zoomAndPan - none of these will work, as SVGViewSpec is fully readonly - even the animated properties it inherits from parent classes like SVGZoomAndPan/SVGFitToViewBox
    24 PASS currentView.zoomAndPan = SVGZoomAndPan.SVG_ZOOMANDPAN_DISABLE threw exception Error: NO_MODIFICATION_ALLOWED_ERR: DOM Exception 7.
     24PASS currentView.zoomAndPan = SVGZoomAndPan.SVG_ZOOMANDPAN_DISABLE threw exception Error: NoModificationAllowedError: DOM Exception 7.
    2525PASS currentView.zoomAndPan is SVGZoomAndPan.SVG_ZOOMANDPAN_MAGNIFY
    2626
    2727Try changing viewBox - this has no affect on the SVGSVGElement the viewSpec belongs to - it exposed all its properties as read-only
    28 PASS currentView.viewBox.baseVal.x = 10 threw exception Error: NO_MODIFICATION_ALLOWED_ERR: DOM Exception 7.
     28PASS currentView.viewBox.baseVal.x = 10 threw exception Error: NoModificationAllowedError: DOM Exception 7.
    2929PASS currentView.viewBox.baseVal.x is 0
    30 PASS currentView.viewBox.baseVal.y = 20 threw exception Error: NO_MODIFICATION_ALLOWED_ERR: DOM Exception 7.
     30PASS currentView.viewBox.baseVal.y = 20 threw exception Error: NoModificationAllowedError: DOM Exception 7.
    3131PASS currentView.viewBox.baseVal.y is 0
    32 PASS currentView.viewBox.baseVal.width = 50 threw exception Error: NO_MODIFICATION_ALLOWED_ERR: DOM Exception 7.
     32PASS currentView.viewBox.baseVal.width = 50 threw exception Error: NoModificationAllowedError: DOM Exception 7.
    3333PASS currentView.viewBox.baseVal.width is 0
    34 PASS currentView.viewBox.baseVal.height = 100 threw exception Error: NO_MODIFICATION_ALLOWED_ERR: DOM Exception 7.
     34PASS currentView.viewBox.baseVal.height = 100 threw exception Error: NoModificationAllowedError: DOM Exception 7.
    3535PASS currentView.viewBox.baseVal.height is 0
    3636PASS currentView.viewBoxString is "0 0 0 0"
     
    4141
    4242Try changing preserveAspectRatio
    43 PASS currentView.preserveAspectRatio.baseVal.align = SVGPreserveAspectRatio.SVG_PRESERVEASPECTRATIO_XMINYMIN threw exception Error: NO_MODIFICATION_ALLOWED_ERR: DOM Exception 7.
     43PASS currentView.preserveAspectRatio.baseVal.align = SVGPreserveAspectRatio.SVG_PRESERVEASPECTRATIO_XMINYMIN threw exception Error: NoModificationAllowedError: DOM Exception 7.
    4444PASS currentView.preserveAspectRatio.baseVal.align is SVGPreserveAspectRatio.SVG_PRESERVEASPECTRATIO_XMIDYMID
    45 PASS currentView.preserveAspectRatio.baseVal.meetOrSlice = SVGPreserveAspectRatio.SVG_MEETORSLICE_SLICE threw exception Error: NO_MODIFICATION_ALLOWED_ERR: DOM Exception 7.
     45PASS currentView.preserveAspectRatio.baseVal.meetOrSlice = SVGPreserveAspectRatio.SVG_MEETORSLICE_SLICE threw exception Error: NoModificationAllowedError: DOM Exception 7.
    4646PASS currentView.preserveAspectRatio.baseVal.meetOrSlice is SVGPreserveAspectRatio.SVG_MEETORSLICE_MEET
    4747
     
    6363
    6464Try changing transform
    65 PASS currentView.transform.clear() threw exception Error: NO_MODIFICATION_ALLOWED_ERR: DOM Exception 7.
     65PASS currentView.transform.clear() threw exception Error: NoModificationAllowedError: DOM Exception 7.
    6666PASS currentView.transform.numberOfItems is 0
    6767PASS successfullyParsed is true
  • trunk/LayoutTests/svg/dom/altGlyph-dom-expected.txt

    r61393 r134785  
    88PASS altGlyph.namespaceURI is "http://www.w3.org/2000/svg"
    99PASS altGlyph.format is "image/svg+xml"
    10 PASS altGlyph.format = 'x' threw exception Error: NO_MODIFICATION_ALLOWED_ERR: DOM Exception 7.
     10PASS altGlyph.format = 'x' threw exception Error: NoModificationAllowedError: DOM Exception 7.
    1111FAIL altGlyph.getStartPositionOfChar(0).x should be 0. Was 72.
    1212PASS successfullyParsed is true
  • trunk/Source/WebCore/ChangeLog

    r134784 r134785  
     12012-11-15  Erik Arvidsson  <arv@chromium.org>
     2
     3        Update DOMException name: NoModificationAllowedError
     4        https://bugs.webkit.org/show_bug.cgi?id=102134
     5
     6        Reviewed by Ojan Vafai.
     7
     8        Patch 7 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-15  Miguel Garcia  <miguelg@chromium.org>
    215
  • trunk/Source/WebCore/dom/DOMCoreException.cpp

    r134720 r134785  
    4242    { "InvalidCharacterError", "An invalid or illegal character was specified, such as in an XML name." },
    4343    { "NoDataAllowedError", "Data was specified for a Node which does not support data." },
    44     { "NO_MODIFICATION_ALLOWED_ERR", "An attempt was made to modify an object where modifications are not allowed." },
     44    { "NoModificationAllowedError", "An attempt was made to modify an object where modifications are not allowed." },
    4545    { "NotFoundError", "An attempt was made to reference a Node in a context where it does not exist." },
    4646    { "NOT_SUPPORTED_ERR", "The implementation did not support the requested type of object or operation." },
Note: See TracChangeset for help on using the changeset viewer.