Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(551)

Side by Side Diff: LayoutTests/fast/dom/DOMImplementation/createDocumentType-err-expected.txt

Issue 24203002: Improve generated "Not enough arguments." TypeError exceptions. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: NeedsRebaseline Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 createDocument tests modeled after mozilla's testing 1 createDocument tests modeled after mozilla's testing
2 2
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ". 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ".
4 4
5 5
6 PASS document.implementation.createDocumentType('foo') threw exception TypeError : Not enough arguments. 6 PASS document.implementation.createDocumentType('foo') threw exception TypeError : Failed to execute 'createDocumentType' on 'DOMImplementation': 3 arguments req uired, but only 1 present..
7 PASS document.implementation.createDocumentType('foo', null) threw exception Typ eError: Not enough arguments. 7 PASS document.implementation.createDocumentType('foo', null) threw exception Typ eError: Failed to execute 'createDocumentType' on 'DOMImplementation': 3 argumen ts required, but only 2 present..
8 PASS document.implementation.createDocumentType(undefined, undefined) threw exce ption TypeError: Not enough arguments. 8 PASS document.implementation.createDocumentType(undefined, undefined) threw exce ption TypeError: Failed to execute 'createDocumentType' on 'DOMImplementation': 3 arguments required, but only 2 present..
9 PASS document.implementation.createDocumentType(null, undefined) threw exception TypeError: Not enough arguments. 9 PASS document.implementation.createDocumentType(null, undefined) threw exception TypeError: Failed to execute 'createDocumentType' on 'DOMImplementation': 3 arg uments required, but only 2 present..
10 PASS document.implementation.createDocumentType(undefined, null) threw exception TypeError: Not enough arguments. 10 PASS document.implementation.createDocumentType(undefined, null) threw exception TypeError: Failed to execute 'createDocumentType' on 'DOMImplementation': 3 arg uments required, but only 2 present..
11 PASS document.implementation.createDocumentType(undefined, undefined, null) did not throw exception. 11 PASS document.implementation.createDocumentType(undefined, undefined, null) did not throw exception.
12 PASS document.implementation.createDocumentType(null, null) threw exception Type Error: Not enough arguments. 12 PASS document.implementation.createDocumentType(null, null) threw exception Type Error: Failed to execute 'createDocumentType' on 'DOMImplementation': 3 argument s required, but only 2 present..
13 PASS document.implementation.createDocumentType(null, '') threw exception TypeEr ror: Not enough arguments. 13 PASS document.implementation.createDocumentType(null, '') threw exception TypeEr ror: Failed to execute 'createDocumentType' on 'DOMImplementation': 3 arguments required, but only 2 present..
14 PASS document.implementation.createDocumentType('', null) threw exception TypeEr ror: Not enough arguments. 14 PASS document.implementation.createDocumentType('', null) threw exception TypeEr ror: Failed to execute 'createDocumentType' on 'DOMImplementation': 3 arguments required, but only 2 present..
15 PASS document.implementation.createDocumentType('', '') threw exception TypeErro r: Not enough arguments. 15 PASS document.implementation.createDocumentType('', '') threw exception TypeErro r: Failed to execute 'createDocumentType' on 'DOMImplementation': 3 arguments re quired, but only 2 present..
16 PASS document.implementation.createDocumentType('a:', null, null) threw exceptio n NamespaceError: An attempt was made to create or change an object in a way whi ch is incorrect with regard to namespaces.. 16 PASS document.implementation.createDocumentType('a:', null, null) threw exceptio n NamespaceError: An attempt was made to create or change an object in a way whi ch is incorrect with regard to namespaces..
17 PASS document.implementation.createDocumentType(':foo', null, null) threw except ion NamespaceError: An attempt was made to create or change an object in a way w hich is incorrect with regard to namespaces.. 17 PASS document.implementation.createDocumentType(':foo', null, null) threw except ion NamespaceError: An attempt was made to create or change an object in a way w hich is incorrect with regard to namespaces..
18 PASS document.implementation.createDocumentType(':', null, null) threw exception NamespaceError: An attempt was made to create or change an object in a way whic h is incorrect with regard to namespaces.. 18 PASS document.implementation.createDocumentType(':', null, null) threw exception NamespaceError: An attempt was made to create or change an object in a way whic h is incorrect with regard to namespaces..
19 PASS document.implementation.createDocumentType('foo', null, null) did not throw exception. 19 PASS document.implementation.createDocumentType('foo', null, null) did not throw exception.
20 PASS document.implementation.createDocumentType('foo:bar', null, null) did not t hrow exception. 20 PASS document.implementation.createDocumentType('foo:bar', null, null) did not t hrow exception.
21 PASS document.implementation.createDocumentType('foo::bar', null, null) threw ex ception NamespaceError: An attempt was made to create or change an object in a w ay which is incorrect with regard to namespaces.. 21 PASS document.implementation.createDocumentType('foo::bar', null, null) threw ex ception NamespaceError: An attempt was made to create or change an object in a w ay which is incorrect with regard to namespaces..
22 PASS document.implementation.createDocumentType(' :bar', null, null) threw exception InvalidCharacterError: The string contains invalid characters.. 22 PASS document.implementation.createDocumentType(' :bar', null, null) threw exception InvalidCharacterError: The string contains invalid characters..
23 PASS document.implementation.createDocumentType('foo: ', null, null) threw exc eption InvalidCharacterError: The string contains invalid characters.. 23 PASS document.implementation.createDocumentType('foo: ', null, null) threw exc eption InvalidCharacterError: The string contains invalid characters..
24 PASS document.implementation.createDocumentType('foo :bar', null, null) threw ex ception InvalidCharacterError: The string contains invalid characters.. 24 PASS document.implementation.createDocumentType('foo :bar', null, null) threw ex ception InvalidCharacterError: The string contains invalid characters..
25 PASS document.implementation.createDocumentType('foo: bar', null, null) threw ex ception InvalidCharacterError: The string contains invalid characters.. 25 PASS document.implementation.createDocumentType('foo: bar', null, null) threw ex ception InvalidCharacterError: The string contains invalid characters..
26 PASS document.implementation.createDocumentType('a:b:c', null, null) threw excep tion NamespaceError: An attempt was made to create or change an object in a way which is incorrect with regard to namespaces.. 26 PASS document.implementation.createDocumentType('a:b:c', null, null) threw excep tion NamespaceError: An attempt was made to create or change an object in a way which is incorrect with regard to namespaces..
27 PASS successfullyParsed is true 27 PASS successfullyParsed is true
28 28
29 TEST COMPLETE 29 TEST COMPLETE
30 30
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698