Changeset 134618 in webkit


Ignore:
Timestamp:
Nov 14, 2012, 9:33:01 AM (12 years ago)
Author:
arv@chromium.org
Message:

Update DOMException name: NotFoundError
https://bugs.webkit.org/show_bug.cgi?id=102137

Reviewed by Ojan Vafai.

Source/WebCore:

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

Updated existing tests.

  • dom/DOMCoreException.cpp:

LayoutTests:

Updated tests and expectations.

  • fast/dom/Document/replaceChild-null-oldChild-expected.txt:
  • fast/dom/Document/script-tests/replaceChild-null-oldChild.js:
  • fast/dom/NamedNodeMap-setNamedItem-crash-expected.txt:
  • fast/dom/Range/range-intersectsNode-expected.txt:
  • fast/dom/incompatible-operations-expected.txt:
  • fast/dom/incompatible-operations.html:
  • fast/dom/setter-type-enforcement-expected.txt:
  • fast/dom/timer-clear-interval-in-handler-and-generate-error-expected.txt:
  • fast/events/remove-target-with-shadow-in-drag-expected.txt:
  • fast/files/workers/worker-read-blob-sync-expected.txt:
  • fast/files/workers/worker-read-file-sync-expected.txt:
  • fast/inspector-support/uncaught-dom8-exception-expected.txt:
  • fast/js/dot-node-base-exception-expected.txt:
  • fast/js/script-tests/dot-node-base-exception.js:
  • fast/mutation/observe-exceptions-expected.txt:
  • platform/chromium-linux/fast/media/mq-js-media-except-01-expected.png:
  • platform/chromium-win/fast/media/mq-js-media-except-01-expected.txt:
  • platform/chromium/fast/dom/NamedNodeMap-setNamedItem-crash-expected.txt:
  • platform/chromium/fast/dom/timer-clear-interval-in-handler-and-generate-error-expected.txt:
  • platform/chromium/fast/events/remove-target-with-shadow-in-drag-expected.txt:
  • platform/chromium/fast/files/workers/worker-read-blob-sync-expected.txt:
  • platform/chromium/fast/inspector-support/uncaught-dom8-exception-expected.txt:
  • platform/chromium/fast/media/mq-js-media-except-01-expected.txt:
  • platform/efl/fast/media/mq-js-media-except-01-expected.txt:
  • platform/gtk/fast/events/remove-target-with-shadow-in-drag-expected.txt:
  • platform/gtk/fast/media/mq-js-media-except-01-expected.txt:
  • platform/mac/fast/media/mq-js-media-except-01-expected.txt:
  • platform/qt/fast/media/mq-js-media-except-01-expected.txt:
Location:
trunk
Files:
31 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r134617 r134618  
     12012-11-14  Erik Arvidsson  <arv@chromium.org>
     2
     3        Update DOMException name: NotFoundError
     4        https://bugs.webkit.org/show_bug.cgi?id=102137
     5
     6        Reviewed by Ojan Vafai.
     7
     8        Updated tests and expectations.
     9
     10        * fast/dom/Document/replaceChild-null-oldChild-expected.txt:
     11        * fast/dom/Document/script-tests/replaceChild-null-oldChild.js:
     12        * fast/dom/NamedNodeMap-setNamedItem-crash-expected.txt:
     13        * fast/dom/Range/range-intersectsNode-expected.txt:
     14        * fast/dom/incompatible-operations-expected.txt:
     15        * fast/dom/incompatible-operations.html:
     16        * fast/dom/setter-type-enforcement-expected.txt:
     17        * fast/dom/timer-clear-interval-in-handler-and-generate-error-expected.txt:
     18        * fast/events/remove-target-with-shadow-in-drag-expected.txt:
     19        * fast/files/workers/worker-read-blob-sync-expected.txt:
     20        * fast/files/workers/worker-read-file-sync-expected.txt:
     21        * fast/inspector-support/uncaught-dom8-exception-expected.txt:
     22        * fast/js/dot-node-base-exception-expected.txt:
     23        * fast/js/script-tests/dot-node-base-exception.js:
     24        * fast/mutation/observe-exceptions-expected.txt:
     25        * platform/chromium-linux/fast/media/mq-js-media-except-01-expected.png:
     26        * platform/chromium-win/fast/media/mq-js-media-except-01-expected.txt:
     27        * platform/chromium/fast/dom/NamedNodeMap-setNamedItem-crash-expected.txt:
     28        * platform/chromium/fast/dom/timer-clear-interval-in-handler-and-generate-error-expected.txt:
     29        * platform/chromium/fast/events/remove-target-with-shadow-in-drag-expected.txt:
     30        * platform/chromium/fast/files/workers/worker-read-blob-sync-expected.txt:
     31        * platform/chromium/fast/inspector-support/uncaught-dom8-exception-expected.txt:
     32        * platform/chromium/fast/media/mq-js-media-except-01-expected.txt:
     33        * platform/efl/fast/media/mq-js-media-except-01-expected.txt:
     34        * platform/gtk/fast/events/remove-target-with-shadow-in-drag-expected.txt:
     35        * platform/gtk/fast/media/mq-js-media-except-01-expected.txt:
     36        * platform/mac/fast/media/mq-js-media-except-01-expected.txt:
     37        * platform/qt/fast/media/mq-js-media-except-01-expected.txt:
     38
    1392012-11-14  Dimitri Glazkov  <dglazkov@chromium.org>
    240
  • trunk/LayoutTests/fast/dom/Document/replaceChild-null-oldChild-expected.txt

    r30635 r134618  
    44
    55
    6 PASS document.replaceChild(document.firstChild, null) threw exception Error: NOT_FOUND_ERR: DOM Exception 8.
     6PASS document.replaceChild(document.firstChild, null) threw exception Error: NotFoundError: DOM Exception 8.
    77PASS successfullyParsed is true
    88
  • trunk/LayoutTests/fast/dom/Document/script-tests/replaceChild-null-oldChild.js

    r98407 r134618  
    11description('Test behavior of Document.replaceChild() when oldChild is null.');
    22
    3 shouldThrow('document.replaceChild(document.firstChild, null)', '"Error: NOT_FOUND_ERR: DOM Exception 8"');
     3shouldThrow('document.replaceChild(document.firstChild, null)', '"Error: NotFoundError: DOM Exception 8"');
  • trunk/LayoutTests/fast/dom/NamedNodeMap-setNamedItem-crash-expected.txt

    r49728 r134618  
    1 CONSOLE MESSAGE: line 7: NOT_FOUND_ERR: DOM Exception 8: An attempt was made to reference a Node in a context where it does not exist.
     1CONSOLE MESSAGE: line 7: NotFoundError: DOM Exception 8: An attempt was made to reference a Node in a context where it does not exist.
    22This passes if it does not crash. (see https://bugs.webkit.org/show_bug.cgi?id=18958)
  • trunk/LayoutTests/fast/dom/Range/range-intersectsNode-expected.txt

    r105649 r134618  
    5151
    52522.3 Node has no parent
    53 PASS range.intersectsNode(document) threw exception Error: NOT_FOUND_ERR: DOM Exception 8.
     53PASS range.intersectsNode(document) threw exception Error: NotFoundError: DOM Exception 8.
    5454
    55552.4 Range has no parent
     
    6060
    61612.6 Node deleted
    62 PASS range.intersectsNode(node) threw exception Error: NOT_FOUND_ERR: DOM Exception 8.
     62PASS range.intersectsNode(node) threw exception Error: NotFoundError: DOM Exception 8.
    6363
    6464PASS successfullyParsed is true
  • trunk/LayoutTests/fast/dom/incompatible-operations-expected.txt

    r39047 r134618  
    44
    55
    6 PASS aNode.appendChild(aDOMImplementation) threw exception Error: NOT_FOUND_ERR: DOM Exception 8.
    7 PASS aNode.appendChild('knort') threw exception Error: NOT_FOUND_ERR: DOM Exception 8.
    8 PASS aNode.appendChild(void 0) threw exception Error: NOT_FOUND_ERR: DOM Exception 8.
     6PASS aNode.appendChild(aDOMImplementation) threw exception Error: NotFoundError: DOM Exception 8.
     7PASS aNode.appendChild('knort') threw exception Error: NotFoundError: DOM Exception 8.
     8PASS aNode.appendChild(void 0) threw exception Error: NotFoundError: DOM Exception 8.
    99PASS aNode.isSameNode(aDOMImplementation) is false
    1010PASS aNode.isSameNode('foo') is false
  • trunk/LayoutTests/fast/dom/incompatible-operations.html

    r98407 r134618  
    2929aNode.appendChild(aSecondNode);
    3030
    31 shouldThrow("aNode.appendChild(aDOMImplementation)", "'Error: NOT_FOUND_ERR: DOM Exception 8'");
     31shouldThrow("aNode.appendChild(aDOMImplementation)", "'Error: NotFoundError: DOM Exception 8'");
    3232
    33 shouldThrow("aNode.appendChild('knort')", "'Error: NOT_FOUND_ERR: DOM Exception 8'");
     33shouldThrow("aNode.appendChild('knort')", "'Error: NotFoundError: DOM Exception 8'");
    3434
    35 shouldThrow("aNode.appendChild(void 0)", "'Error: NOT_FOUND_ERR: DOM Exception 8'");
     35shouldThrow("aNode.appendChild(void 0)", "'Error: NotFoundError: DOM Exception 8'");
    3636
    3737shouldBeFalse("aNode.isSameNode(aDOMImplementation)");
  • trunk/LayoutTests/fast/dom/setter-type-enforcement-expected.txt

    r134435 r134618  
    55
    66PASS document.body = nodelist; threw exception Error: HierarchyRequestError: DOM Exception 3.
    7 PASS table.tHead = nodelist; threw exception Error: NOT_FOUND_ERR: DOM Exception 8.
     7PASS table.tHead = nodelist; threw exception Error: NotFoundError: DOM Exception 8.
    88PASS successfullyParsed is true
    99
  • trunk/LayoutTests/fast/dom/timer-clear-interval-in-handler-and-generate-error-expected.txt

    r49728 r134618  
    1 CONSOLE MESSAGE: line 10: NOT_FOUND_ERR: DOM Exception 8: An attempt was made to reference a Node in a context where it does not exist.
     1CONSOLE MESSAGE: line 10: NotFoundError: DOM Exception 8: An attempt was made to reference a Node in a context where it does not exist.
    22
  • trunk/LayoutTests/fast/events/remove-target-with-shadow-in-drag-expected.txt

    r106488 r134618  
    1 CONSOLE MESSAGE: line 34: NOT_FOUND_ERR: DOM Exception 8: An attempt was made to reference a Node in a context where it does not exist.
    2 CONSOLE MESSAGE: line 34: NOT_FOUND_ERR: DOM Exception 8: An attempt was made to reference a Node in a context where it does not exist.
     1CONSOLE MESSAGE: line 34: NotFoundError: DOM Exception 8: An attempt was made to reference a Node in a context where it does not exist.
     2CONSOLE MESSAGE: line 34: NotFoundError: DOM Exception 8: An attempt was made to reference a Node in a context where it does not exist.
    33PASS. DRT didn't crash.
  • trunk/LayoutTests/fast/files/workers/worker-read-blob-sync-expected.txt

    r120583 r134618  
    22Received files in worker
    33Test reading a blob containing non-existent file
    4 Received exception 1: NOT_FOUND_ERR
    5 Received exception 8: NOT_FOUND_ERR
     4Received exception 1: NotFoundError
     5Received exception 8: NotFoundError
    66Test reading a blob containing existent and non-existent file
    7 Received exception 1: NOT_FOUND_ERR
    8 Received exception 8: NOT_FOUND_ERR
     7Received exception 1: NotFoundError
     8Received exception 8: NotFoundError
    99Test reading a blob containing empty file
    1010result size: 0
    1111result:
    12 Received exception 8: NOT_FOUND_ERR
     12Received exception 8: NotFoundError
    1313Test reading a blob containing empty text
    1414result size: 0
    1515result:
    16 Received exception 8: NOT_FOUND_ERR
     16Received exception 8: NotFoundError
    1717Test reading a blob containing empty files and empty texts
    1818result size: 0
    1919result:
    20 Received exception 8: NOT_FOUND_ERR
     20Received exception 8: NotFoundError
    2121Test reading a blob containing single file
    2222result size: 5
    2323result: Hello
    24 Received exception 8: NOT_FOUND_ERR
     24Received exception 8: NotFoundError
    2525Test reading a blob containing single text
    2626result size: 5
    2727result: First
    28 Received exception 8: NOT_FOUND_ERR
     28Received exception 8: NotFoundError
    2929Test reading a blob containing single text as data URL
    3030result size: 21
    3131result: data:;base64,Rmlyc3Q=
    32 Received exception 8: NOT_FOUND_ERR
     32Received exception 8: NotFoundError
    3333Test reading a blob containing single text as data URL (optional content type provided)
    3434result size: 29
    3535result: data:type/foo;base64,Rmlyc3Q=
    36 Received exception 8: NOT_FOUND_ERR
     36Received exception 8: NotFoundError
    3737Test reading a blob containing single ArrayBuffer
    3838result size: 9
    3939result: 0x0 0x1 0x2 0x80 0x81 0x82 0xfd 0xfe 0xff
    40 Received exception 8: NOT_FOUND_ERR
     40Received exception 8: NotFoundError
    4141Test reading a blob containing sliced file
    4242result size: 5
    4343result: onder
    44 Received exception 8: NOT_FOUND_ERR
     44Received exception 8: NotFoundError
    4545Test reading a blob containing sliced text
    4646result size: 4
    4747result: irst
    48 Received exception 8: NOT_FOUND_ERR
     48Received exception 8: NotFoundError
    4949Test reading a blob containing sliced ArrayBuffer
    5050result size: 8
    5151result: 0x1 0x2 0x80 0x81 0x82 0xfd 0xfe 0xff
    52 Received exception 8: NOT_FOUND_ERR
     52Received exception 8: NotFoundError
    5353Test reading a blob containing multiple files
    5454result size: 19
    5555result: HelloWonderfulWorld
    56 Received exception 8: NOT_FOUND_ERR
     56Received exception 8: NotFoundError
    5757Test reading a blob containing multiple texts
    5858result size: 16
    5959result: FirstSecondThird
    60 Received exception 8: NOT_FOUND_ERR
     60Received exception 8: NotFoundError
    6161Test reading a blob containing multiple ArrayBuffer
    6262result size: 9
    6363result: 0x0 0x1 0x2 0x80 0x81 0x82 0xfd 0xfe 0xff
    64 Received exception 8: NOT_FOUND_ERR
     64Received exception 8: NotFoundError
    6565Test reading a hybrid blob
    6666result size: 38
    6767result: FirstHelloSecondWonderfulWorldThird012
    68 Received exception 8: NOT_FOUND_ERR
     68Received exception 8: NotFoundError
    6969Test reading a sliced hybrid blob
    7070result size: 12
    7171result: lloSecondWon
    72 Received exception 8: NOT_FOUND_ERR
     72Received exception 8: NotFoundError
    7373Test reading a triple-sliced hybrid blob
    7474result size: 30
    7575result: ondWonderfulWorldThird012Foolo
    76 Received exception 8: NOT_FOUND_ERR
     76Received exception 8: NotFoundError
    7777DONE
    7878
  • trunk/LayoutTests/fast/files/workers/worker-read-file-sync-expected.txt

    r107994 r134618  
    33Test reading a non-existent file as array buffer
    44Received exception 1: NOT_FOUND_ERR
    5 Received exception 8: NOT_FOUND_ERR
     5Received exception 8: NotFoundError
    66Test reading a non-existent file as binary string
    77Received exception 1: NOT_FOUND_ERR
    8 Received exception 8: NOT_FOUND_ERR
     8Received exception 8: NotFoundError
    99Test reading a non-existent file as text
    1010Received exception 1: NOT_FOUND_ERR
    11 Received exception 8: NOT_FOUND_ERR
     11Received exception 8: NotFoundError
    1212Test reading a non-existent file as data URL
    1313Received exception 1: NOT_FOUND_ERR
    14 Received exception 8: NOT_FOUND_ERR
     14Received exception 8: NotFoundError
    1515Test reading an empty file as array buffer
    1616result size: 0
    1717result:
    18 Received exception 8: NOT_FOUND_ERR
     18Received exception 8: NotFoundError
    1919Test reading an empty file as binary string
    2020result size: 0
    2121result:
    22 Received exception 8: NOT_FOUND_ERR
     22Received exception 8: NotFoundError
    2323Test reading an empty file as text
    2424result size: 0
    2525result:
    26 Received exception 8: NOT_FOUND_ERR
     26Received exception 8: NotFoundError
    2727Test reading an empty file as data URL
    2828result size: 5
    2929result: data:
    30 Received exception 8: NOT_FOUND_ERR
     30Received exception 8: NotFoundError
    3131Test reading a UTF-8 file as array buffer
    3232result size: 5
    3333result: Hello
    34 Received exception 8: NOT_FOUND_ERR
     34Received exception 8: NotFoundError
    3535Test reading a UTF-8 file as binary string
    3636result size: 5
    3737result: Hello
    38 Received exception 8: NOT_FOUND_ERR
     38Received exception 8: NotFoundError
    3939Test reading a binary file as array buffer
    4040result size: 9
    4141result: 0x0 0x1 0x2 0x80 0x81 0x82 0xfd 0xfe 0xff
    42 Received exception 8: NOT_FOUND_ERR
     42Received exception 8: NotFoundError
    4343Test reading a binary file as binary string
    4444result size: 9
    4545result: 0x0 0x1 0x2 0x80 0x81 0x82 0xfd 0xfe 0xff
    46 Received exception 8: NOT_FOUND_ERR
     46Received exception 8: NotFoundError
    4747Test reading a UTF-8 file as text
    4848result size: 5
    4949result: Hello
    50 Received exception 8: NOT_FOUND_ERR
     50Received exception 8: NotFoundError
    5151Test reading a UTF-16BE BOM file as text
    5252result size: 5
    5353result: Hello
    54 Received exception 8: NOT_FOUND_ERR
     54Received exception 8: NotFoundError
    5555Test reading a UTF-16LE BOM file as text
    5656result size: 5
    5757result: Hello
    58 Received exception 8: NOT_FOUND_ERR
     58Received exception 8: NotFoundError
    5959Test reading a UTF-8 BOM file as text
    6060result size: 5
    6161result: Hello
    62 Received exception 8: NOT_FOUND_ERR
     62Received exception 8: NotFoundError
    6363Test reading a UTF-16BE file as text with UTF-16BE encoding
    6464result size: 5
    6565result: Hello
    66 Received exception 8: NOT_FOUND_ERR
     66Received exception 8: NotFoundError
    6767Test reading a UTF-16BE BOM file as text with UTF8 encoding
    6868result size: 5
    6969result: Hello
    70 Received exception 8: NOT_FOUND_ERR
     70Received exception 8: NotFoundError
    7171Test reading a UTF-16BE BOM file as text with invalid encoding
    7272result size: 5
    7373result: Hello
    74 Received exception 8: NOT_FOUND_ERR
     74Received exception 8: NotFoundError
    7575Test reading a UTF-8 file as data URL
    7676result size: 31
    7777result: data:text/plain;base64,SGVsbG8=
    78 Received exception 8: NOT_FOUND_ERR
     78Received exception 8: NotFoundError
    7979Test calling multiple read methods in a row
    8080result size: 5
  • trunk/LayoutTests/fast/inspector-support/uncaught-dom8-exception-expected.txt

    r51072 r134618  
    1 CONSOLE MESSAGE: line 9: NOT_FOUND_ERR: DOM Exception 8: An attempt was made to reference a Node in a context where it does not exist.
     1CONSOLE MESSAGE: line 9: NotFoundError: DOM Exception 8: An attempt was made to reference a Node in a context where it does not exist.
    22This tests that we are getting the correct message for DOM Exception 8: NOT_FOUND_ERR.
  • trunk/LayoutTests/fast/js/dot-node-base-exception-expected.txt

    r20291 r134618  
    44
    55
    6 PASS (document.appendChild()).foobar() threw exception Error: NOT_FOUND_ERR: DOM Exception 8.
     6PASS (document.appendChild()).foobar() threw exception Error: NotFoundError: DOM Exception 8.
    77PASS successfullyParsed is true
    88
  • trunk/LayoutTests/fast/js/script-tests/dot-node-base-exception.js

    r98407 r134618  
    44
    55// Should be a DOM exception, not just some "TypeError: Null value".
    6 shouldThrow('(document.appendChild()).foobar()', '"Error: NOT_FOUND_ERR: DOM Exception 8"');
     6shouldThrow('(document.appendChild()).foobar()', '"Error: NotFoundError: DOM Exception 8"');
  • trunk/LayoutTests/fast/mutation/observe-exceptions-expected.txt

    r121278 r134618  
    1010PASS observer.observe(document.body, null) threw exception Error: SYNTAX_ERR: DOM Exception 12.
    1111PASS observer.observe(document.body, undefined) threw exception Error: SYNTAX_ERR: DOM Exception 12.
    12 PASS observer.observe(null, {attributes: true}) threw exception Error: NOT_FOUND_ERR: DOM Exception 8.
    13 PASS observer.observe(undefined, {attributes: true}) threw exception Error: NOT_FOUND_ERR: DOM Exception 8.
     12PASS observer.observe(null, {attributes: true}) threw exception Error: NotFoundError: DOM Exception 8.
     13PASS observer.observe(undefined, {attributes: true}) threw exception Error: NotFoundError: DOM Exception 8.
    1414PASS observer.observe(document.body, {subtree: true}) threw exception Error: SYNTAX_ERR: DOM Exception 12.
    1515PASS observer.observe(document.body, {childList: true, attributeOldValue: true}) threw exception Error: SYNTAX_ERR: DOM Exception 12.
  • trunk/LayoutTests/platform/chromium-win/fast/media/mq-js-media-except-01-expected.txt

    r56268 r134618  
    1111          text run at (0,0) width 53: "Success."
    1212      RenderBlock {P} at (0,72) size 784x20
    13         RenderText {#text} at (0,0) size 491x19
    14           text run at (0,0) width 491: "Following exception was caught: Error: NOT_FOUND_ERR: DOM Exception 8"
     13        RenderText {#text} at (0,0) size 453x19
     14          text run at (0,0) width 453: "Following exception was caught: Error: NotFoundError: DOM Exception 8"
  • trunk/LayoutTests/platform/chromium/fast/dom/NamedNodeMap-setNamedItem-crash-expected.txt

    r119124 r134618  
    1 CONSOLE MESSAGE: line 7: Uncaught Error: NOT_FOUND_ERR: DOM Exception 8
     1CONSOLE MESSAGE: line 7: Uncaught Error: NotFoundError: DOM Exception 8
    22This passes if it does not crash. (see https://bugs.webkit.org/show_bug.cgi?id=18958)
  • trunk/LayoutTests/platform/chromium/fast/dom/timer-clear-interval-in-handler-and-generate-error-expected.txt

    r119124 r134618  
    1 CONSOLE MESSAGE: line 10: Uncaught Error: NOT_FOUND_ERR: DOM Exception 8
     1CONSOLE MESSAGE: line 10: Uncaught Error: NotFoundError: DOM Exception 8
    22
  • trunk/LayoutTests/platform/chromium/fast/events/remove-target-with-shadow-in-drag-expected.txt

    r106576 r134618  
    1 CONSOLE MESSAGE: line 34: Uncaught Error: NOT_FOUND_ERR: DOM Exception 8
    2 CONSOLE MESSAGE: line 34: Uncaught Error: NOT_FOUND_ERR: DOM Exception 8
     1CONSOLE MESSAGE: line 34: Uncaught Error: NotFoundError: DOM Exception 8
     2CONSOLE MESSAGE: line 34: Uncaught Error: NotFoundError: DOM Exception 8
    33PASS. DRT didn't crash.
  • trunk/LayoutTests/platform/chromium/fast/files/workers/worker-read-blob-sync-expected.txt

    r120583 r134618  
    44result size: 0
    55result:
    6 Received exception 8: NOT_FOUND_ERR
     6Received exception 8: NotFoundError
    77Test reading a blob containing existent and non-existent file
    88result size: 5
    99result: Hello
    10 Received exception 8: NOT_FOUND_ERR
     10Received exception 8: NotFoundError
    1111Test reading a blob containing empty file
    1212result size: 0
    1313result:
    14 Received exception 8: NOT_FOUND_ERR
     14Received exception 8: NotFoundError
    1515Test reading a blob containing empty text
    1616result size: 0
    1717result:
    18 Received exception 8: NOT_FOUND_ERR
     18Received exception 8: NotFoundError
    1919Test reading a blob containing empty files and empty texts
    2020result size: 0
    2121result:
    22 Received exception 8: NOT_FOUND_ERR
     22Received exception 8: NotFoundError
    2323Test reading a blob containing single file
    2424result size: 5
    2525result: Hello
    26 Received exception 8: NOT_FOUND_ERR
     26Received exception 8: NotFoundError
    2727Test reading a blob containing single text
    2828result size: 5
    2929result: First
    30 Received exception 8: NOT_FOUND_ERR
     30Received exception 8: NotFoundError
    3131Test reading a blob containing single text as data URL
    3232result size: 21
    3333result: data:;base64,Rmlyc3Q=
    34 Received exception 8: NOT_FOUND_ERR
     34Received exception 8: NotFoundError
    3535Test reading a blob containing single text as data URL (optional content type provided)
    3636result size: 29
    3737result: data:type/foo;base64,Rmlyc3Q=
    38 Received exception 8: NOT_FOUND_ERR
     38Received exception 8: NotFoundError
    3939Test reading a blob containing single ArrayBuffer
    4040result size: 9
    4141result: 0x0 0x1 0x2 0x80 0x81 0x82 0xfd 0xfe 0xff
    42 Received exception 8: NOT_FOUND_ERR
     42Received exception 8: NotFoundError
    4343Test reading a blob containing sliced file
    4444result size: 5
    4545result: onder
    46 Received exception 8: NOT_FOUND_ERR
     46Received exception 8: NotFoundError
    4747Test reading a blob containing sliced text
    4848result size: 4
    4949result: irst
    50 Received exception 8: NOT_FOUND_ERR
     50Received exception 8: NotFoundError
    5151Test reading a blob containing sliced ArrayBuffer
    5252result size: 8
    5353result: 0x1 0x2 0x80 0x81 0x82 0xfd 0xfe 0xff
    54 Received exception 8: NOT_FOUND_ERR
     54Received exception 8: NotFoundError
    5555Test reading a blob containing multiple files
    5656result size: 19
    5757result: HelloWonderfulWorld
    58 Received exception 8: NOT_FOUND_ERR
     58Received exception 8: NotFoundError
    5959Test reading a blob containing multiple texts
    6060result size: 16
    6161result: FirstSecondThird
    62 Received exception 8: NOT_FOUND_ERR
     62Received exception 8: NotFoundError
    6363Test reading a blob containing multiple ArrayBuffer
    6464result size: 9
    6565result: 0x0 0x1 0x2 0x80 0x81 0x82 0xfd 0xfe 0xff
    66 Received exception 8: NOT_FOUND_ERR
     66Received exception 8: NotFoundError
    6767Test reading a hybrid blob
    6868result size: 38
    6969result: FirstHelloSecondWonderfulWorldThird012
    70 Received exception 8: NOT_FOUND_ERR
     70Received exception 8: NotFoundError
    7171Test reading a sliced hybrid blob
    7272result size: 12
    7373result: lloSecondWon
    74 Received exception 8: NOT_FOUND_ERR
     74Received exception 8: NotFoundError
    7575Test reading a triple-sliced hybrid blob
    7676result size: 30
    7777result: ondWonderfulWorldThird012Foolo
    78 Received exception 8: NOT_FOUND_ERR
     78Received exception 8: NotFoundError
    7979DONE
    8080
  • trunk/LayoutTests/platform/chromium/fast/inspector-support/uncaught-dom8-exception-expected.txt

    r92646 r134618  
    1 CONSOLE MESSAGE: line 9: Uncaught Error: NOT_FOUND_ERR: DOM Exception 8
     1CONSOLE MESSAGE: line 9: Uncaught Error: NotFoundError: DOM Exception 8
    22This tests that we are getting the correct message for DOM Exception 8: NOT_FOUND_ERR.
  • trunk/LayoutTests/platform/chromium/fast/media/mq-js-media-except-01-expected.txt

    r131694 r134618  
    1212      RenderBlock {P} at (0,68) size 784x18
    1313        RenderText {#text} at (0,0) size 519x18
    14           text run at (0,0) width 519: "Following exception was caught: Error: NOT_FOUND_ERR: DOM Exception 8"
     14          text run at (0,0) width 519: "Following exception was caught: Error: NotFoundError: DOM Exception 8"
  • trunk/LayoutTests/platform/efl/fast/media/mq-js-media-except-01-expected.txt

    r106181 r134618  
    1212      RenderBlock {P} at (0,68) size 784x18
    1313        RenderText {#text} at (0,0) size 519x19
    14           text run at (0,0) width 519: "Following exception was caught: Error: NOT_FOUND_ERR: DOM Exception 8"
     14          text run at (0,0) width 519: "Following exception was caught: Error: NotFoundError: DOM Exception 8"
  • trunk/LayoutTests/platform/gtk/fast/events/remove-target-with-shadow-in-drag-expected.txt

    r115020 r134618  
    1 CONSOLE MESSAGE: line 34: NOT_FOUND_ERR: DOM Exception 8: An attempt was made to reference a Node in a context where it does not exist.
     1CONSOLE MESSAGE: line 34: NotFoundError: DOM Exception 8: An attempt was made to reference a Node in a context where it does not exist.
    22PASS. DRT didn't crash.
  • trunk/LayoutTests/platform/gtk/fast/media/mq-js-media-except-01-expected.txt

    r114836 r134618  
    1212      RenderBlock {P} at (0,68) size 784x18
    1313        RenderText {#text} at (0,0) size 519x19
    14           text run at (0,0) width 519: "Following exception was caught: Error: NOT_FOUND_ERR: DOM Exception 8"
     14          text run at (0,0) width 519: "Following exception was caught: Error: NotFoundError: DOM Exception 8"
  • trunk/LayoutTests/platform/mac/fast/media/mq-js-media-except-01-expected.txt

    r30635 r134618  
    1111          text run at (0,0) width 54: "Success."
    1212      RenderBlock {P} at (0,68) size 784x18
    13         RenderText {#text} at (0,0) size 519x18
    14           text run at (0,0) width 519: "Following exception was caught: Error: NOT_FOUND_ERR: DOM Exception 8"
     13        RenderText {#text} at (0,0) size 478x18
     14          text run at (0,0) width 478: "Following exception was caught: Error: NotFoundError: DOM Exception 8"
  • trunk/LayoutTests/platform/qt/fast/media/mq-js-media-except-01-expected.txt

    r123100 r134618  
    1212      RenderBlock {P} at (0,70) size 784x19
    1313        RenderText {#text} at (0,0) size 491x19
    14           text run at (0,0) width 491: "Following exception was caught: Error: NOT_FOUND_ERR: DOM Exception 8"
     14          text run at (0,0) width 491: "Following exception was caught: Error: NotFoundError: DOM Exception 8"
  • trunk/Source/WebCore/ChangeLog

    r134615 r134618  
     12012-11-14  Erik Arvidsson  <arv@chromium.org>
     2
     3        Update DOMException name: NotFoundError
     4        https://bugs.webkit.org/show_bug.cgi?id=102137
     5
     6        Reviewed by Ojan Vafai.
     7
     8        Patch 8 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-14  Otto Derek Cheung  <otcheung@rim.com>
    215
  • trunk/Source/WebCore/dom/DOMCoreException.cpp

    r134613 r134618  
    4343    { "NoDataAllowedError", "Data was specified for a Node which does not support data." },
    4444    { "NO_MODIFICATION_ALLOWED_ERR", "An attempt was made to modify an object where modifications are not allowed." },
    45     { "NOT_FOUND_ERR", "An attempt was made to reference a Node in a context where it does not exist." },
     45    { "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." },
    4747    { "INUSE_ATTRIBUTE_ERR", "An attempt was made to add an attribute that is already in use elsewhere." },
Note: See TracChangeset for help on using the changeset viewer.