mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-11-11 21:58:41 +02:00
MozReview-Commit-ID: 3HXcvTYpAkA --HG-- rename : testing/web-platform/tests/fonts/matching/README.md => testing/web-platform/tests/css-fonts/matching/README.md rename : testing/web-platform/tests/fonts/matching/fixed-stretch-style-over-weight-ref.html => testing/web-platform/tests/css-fonts/matching/fixed-stretch-style-over-weight-ref.html rename : testing/web-platform/tests/fonts/matching/fixed-stretch-style-over-weight.html => testing/web-platform/tests/css-fonts/matching/fixed-stretch-style-over-weight.html rename : testing/web-platform/tests/fonts/matching/font-matching.css => testing/web-platform/tests/css-fonts/matching/font-matching.css rename : testing/web-platform/tests/fonts/matching/resources/variabletest_matching.ttf => testing/web-platform/tests/css-fonts/matching/resources/variabletest_matching.ttf rename : testing/web-platform/tests/fonts/matching/stretch-distance-over-weight-distance-ref.html => testing/web-platform/tests/css-fonts/matching/stretch-distance-over-weight-distance-ref.html rename : testing/web-platform/tests/fonts/matching/stretch-distance-over-weight-distance.html => testing/web-platform/tests/css-fonts/matching/stretch-distance-over-weight-distance.html rename : testing/web-platform/tests/fonts/matching/style-ranges-over-weight-direction-ref.html => testing/web-platform/tests/css-fonts/matching/style-ranges-over-weight-direction-ref.html rename : testing/web-platform/tests/fonts/matching/style-ranges-over-weight-direction.html => testing/web-platform/tests/css-fonts/matching/style-ranges-over-weight-direction.html rename : testing/web-platform/tests/payment-request/OWNERS => testing/web-platform/tests/payment-method-id/OWNERS rename : testing/web-platform/tests/storage/interfaces.worker.js => testing/web-platform/tests/storage/interfaces.https.worker.js rename : testing/web-platform/tests/tools/browserutils/requirements.txt => testing/web-platform/tests/tools/wpt/requirements.txt rename : testing/web-platform/tests/tools/browserutils/utils.py => testing/web-platform/tests/tools/wpt/utils.py rename : testing/web-platform/tests/tools/wptrunner/wptrunner/executors/reftest-wait.js => testing/web-platform/tests/tools/wptrunner/wptrunner/executors/reftest-wait_marionette.js rename : testing/web-platform/tests/uievents/keyboard/key-manual.css => testing/web-platform/tests/uievents/keyboard/key.css rename : testing/web-platform/tests/uievents/keyboard/key-manual.js => testing/web-platform/tests/uievents/keyboard/key.js
51 lines
1.4 KiB
JavaScript
51 lines
1.4 KiB
JavaScript
'use strict';
|
|
|
|
test(function() {
|
|
// https://www.w3.org/Bugs/Public/show_bug.cgi?id=27732
|
|
var constants = [
|
|
"INDEX_SIZE_ERR",
|
|
"DOMSTRING_SIZE_ERR",
|
|
"HIERARCHY_REQUEST_ERR",
|
|
"WRONG_DOCUMENT_ERR",
|
|
"INVALID_CHARACTER_ERR",
|
|
"NO_DATA_ALLOWED_ERR",
|
|
"NO_MODIFICATION_ALLOWED_ERR",
|
|
"NOT_FOUND_ERR",
|
|
"NOT_SUPPORTED_ERR",
|
|
"INUSE_ATTRIBUTE_ERR",
|
|
"INVALID_STATE_ERR",
|
|
"SYNTAX_ERR",
|
|
"INVALID_MODIFICATION_ERR",
|
|
"NAMESPACE_ERR",
|
|
"INVALID_ACCESS_ERR",
|
|
"VALIDATION_ERR",
|
|
"TYPE_MISMATCH_ERR",
|
|
"SECURITY_ERR",
|
|
"NETWORK_ERR",
|
|
"ABORT_ERR",
|
|
"URL_MISMATCH_ERR",
|
|
"QUOTA_EXCEEDED_ERR",
|
|
"TIMEOUT_ERR",
|
|
"INVALID_NODE_TYPE_ERR",
|
|
"DATA_CLONE_ERR"
|
|
]
|
|
var objects = [
|
|
[DOMException, "DOMException constructor object"],
|
|
[DOMException.prototype, "DOMException prototype object"]
|
|
]
|
|
constants.forEach(function(name, i) {
|
|
objects.forEach(function(o) {
|
|
var object = o[0], description = o[1];
|
|
test(function() {
|
|
assert_equals(object[name], i + 1, name)
|
|
assert_own_property(object, name)
|
|
var pd = Object.getOwnPropertyDescriptor(object, name)
|
|
assert_false("get" in pd, "get")
|
|
assert_false("set" in pd, "set")
|
|
assert_false(pd.writable, "writable")
|
|
assert_true(pd.enumerable, "enumerable")
|
|
assert_false(pd.configurable, "configurable")
|
|
}, "Constant " + name + " on " + description)
|
|
})
|
|
})
|
|
})
|