| OLD | NEW | 
|---|
| 1 /*global self*/ | 1 /*global self*/ | 
| 2 /*jshint latedef: nofunc*/ | 2 /*jshint latedef: nofunc*/ | 
| 3 /* | 3 /* | 
| 4 Distributed under both the W3C Test Suite License [1] and the W3C | 4 Distributed under both the W3C Test Suite License [1] and the W3C | 
| 5 3-clause BSD License [2]. To contribute to a W3C Test Suite, see the | 5 3-clause BSD License [2]. To contribute to a W3C Test Suite, see the | 
| 6 policies and contribution forms [3]. | 6 policies and contribution forms [3]. | 
| 7 | 7 | 
| 8 [1] http://www.w3.org/Consortium/Legal/2008/04-testsuite-license | 8 [1] http://www.w3.org/Consortium/Legal/2008/04-testsuite-license | 
| 9 [2] http://www.w3.org/Consortium/Legal/2008/03-bsd-license | 9 [2] http://www.w3.org/Consortium/Legal/2008/03-bsd-license | 
| 10 [3] http://www.w3.org/2004/10/27-testcases | 10 [3] http://www.w3.org/2004/10/27-testcases | 
| (...skipping 1158 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 1169             } | 1169             } | 
| 1170 | 1170 | 
| 1171             var code_name_map = { | 1171             var code_name_map = { | 
| 1172                 INDEX_SIZE_ERR: 'IndexSizeError', | 1172                 INDEX_SIZE_ERR: 'IndexSizeError', | 
| 1173                 HIERARCHY_REQUEST_ERR: 'HierarchyRequestError', | 1173                 HIERARCHY_REQUEST_ERR: 'HierarchyRequestError', | 
| 1174                 WRONG_DOCUMENT_ERR: 'WrongDocumentError', | 1174                 WRONG_DOCUMENT_ERR: 'WrongDocumentError', | 
| 1175                 INVALID_CHARACTER_ERR: 'InvalidCharacterError', | 1175                 INVALID_CHARACTER_ERR: 'InvalidCharacterError', | 
| 1176                 NO_MODIFICATION_ALLOWED_ERR: 'NoModificationAllowedError', | 1176                 NO_MODIFICATION_ALLOWED_ERR: 'NoModificationAllowedError', | 
| 1177                 NOT_FOUND_ERR: 'NotFoundError', | 1177                 NOT_FOUND_ERR: 'NotFoundError', | 
| 1178                 NOT_SUPPORTED_ERR: 'NotSupportedError', | 1178                 NOT_SUPPORTED_ERR: 'NotSupportedError', | 
|  | 1179                 INUSE_ATTRIBUTE_ERR: 'InUseAttributeError', | 
| 1179                 INVALID_STATE_ERR: 'InvalidStateError', | 1180                 INVALID_STATE_ERR: 'InvalidStateError', | 
| 1180                 SYNTAX_ERR: 'SyntaxError', | 1181                 SYNTAX_ERR: 'SyntaxError', | 
| 1181                 INVALID_MODIFICATION_ERR: 'InvalidModificationError', | 1182                 INVALID_MODIFICATION_ERR: 'InvalidModificationError', | 
| 1182                 NAMESPACE_ERR: 'NamespaceError', | 1183                 NAMESPACE_ERR: 'NamespaceError', | 
| 1183                 INVALID_ACCESS_ERR: 'InvalidAccessError', | 1184                 INVALID_ACCESS_ERR: 'InvalidAccessError', | 
| 1184                 TYPE_MISMATCH_ERR: 'TypeMismatchError', | 1185                 TYPE_MISMATCH_ERR: 'TypeMismatchError', | 
| 1185                 SECURITY_ERR: 'SecurityError', | 1186                 SECURITY_ERR: 'SecurityError', | 
| 1186                 NETWORK_ERR: 'NetworkError', | 1187                 NETWORK_ERR: 'NetworkError', | 
| 1187                 ABORT_ERR: 'AbortError', | 1188                 ABORT_ERR: 'AbortError', | 
| 1188                 URL_MISMATCH_ERR: 'URLMismatchError', | 1189                 URL_MISMATCH_ERR: 'URLMismatchError', | 
| 1189                 QUOTA_EXCEEDED_ERR: 'QuotaExceededError', | 1190                 QUOTA_EXCEEDED_ERR: 'QuotaExceededError', | 
| 1190                 TIMEOUT_ERR: 'TimeoutError', | 1191                 TIMEOUT_ERR: 'TimeoutError', | 
| 1191                 INVALID_NODE_TYPE_ERR: 'InvalidNodeTypeError', | 1192                 INVALID_NODE_TYPE_ERR: 'InvalidNodeTypeError', | 
| 1192                 DATA_CLONE_ERR: 'DataCloneError' | 1193                 DATA_CLONE_ERR: 'DataCloneError' | 
| 1193             }; | 1194             }; | 
| 1194 | 1195 | 
| 1195             var name = code in code_name_map ? code_name_map[code] : code; | 1196             var name = code in code_name_map ? code_name_map[code] : code; | 
| 1196 | 1197 | 
| 1197             var name_code_map = { | 1198             var name_code_map = { | 
| 1198                 IndexSizeError: 1, | 1199                 IndexSizeError: 1, | 
| 1199                 HierarchyRequestError: 3, | 1200                 HierarchyRequestError: 3, | 
| 1200                 WrongDocumentError: 4, | 1201                 WrongDocumentError: 4, | 
| 1201                 InvalidCharacterError: 5, | 1202                 InvalidCharacterError: 5, | 
| 1202                 NoModificationAllowedError: 7, | 1203                 NoModificationAllowedError: 7, | 
| 1203                 NotFoundError: 8, | 1204                 NotFoundError: 8, | 
| 1204                 NotSupportedError: 9, | 1205                 NotSupportedError: 9, | 
|  | 1206                 InUseAttributeError: 10, | 
| 1205                 InvalidStateError: 11, | 1207                 InvalidStateError: 11, | 
| 1206                 SyntaxError: 12, | 1208                 SyntaxError: 12, | 
| 1207                 InvalidModificationError: 13, | 1209                 InvalidModificationError: 13, | 
| 1208                 NamespaceError: 14, | 1210                 NamespaceError: 14, | 
| 1209                 InvalidAccessError: 15, | 1211                 InvalidAccessError: 15, | 
| 1210                 TypeMismatchError: 17, | 1212                 TypeMismatchError: 17, | 
| 1211                 SecurityError: 18, | 1213                 SecurityError: 18, | 
| 1212                 NetworkError: 19, | 1214                 NetworkError: 19, | 
| 1213                 AbortError: 20, | 1215                 AbortError: 20, | 
| 1214                 URLMismatchError: 21, | 1216                 URLMismatchError: 21, | 
| (...skipping 1433 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 2648             tests.status.status = tests.status.ERROR; | 2650             tests.status.status = tests.status.ERROR; | 
| 2649             tests.status.message = e.message; | 2651             tests.status.message = e.message; | 
| 2650             tests.status.stack = e.stack; | 2652             tests.status.stack = e.stack; | 
| 2651         } | 2653         } | 
| 2652     }); | 2654     }); | 
| 2653 | 2655 | 
| 2654     test_environment.on_tests_ready(); | 2656     test_environment.on_tests_ready(); | 
| 2655 | 2657 | 
| 2656 })(); | 2658 })(); | 
| 2657 // vim: set expandtab shiftwidth=4 tabstop=4: | 2659 // vim: set expandtab shiftwidth=4 tabstop=4: | 
| OLD | NEW | 
|---|