зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1123875 - Add a test for strict assignment to a readonly WebIDL attribute. r=peterv.
--HG-- extra : rebase_source : 3da66c3cd20099f907f58cdc0de2ce31e3bf95a8
This commit is contained in:
Родитель
d4076f899e
Коммит
68464c731e
|
@ -23,6 +23,7 @@ skip-if = debug == false
|
|||
[test_bug963382.html]
|
||||
skip-if = debug == false
|
||||
[test_bug1041646.html]
|
||||
[test_bug1123875.html]
|
||||
[test_barewordGetsWindow.html]
|
||||
[test_callback_default_thisval.html]
|
||||
[test_cloneAndImportNode.html]
|
||||
|
|
|
@ -0,0 +1,14 @@
|
|||
<!doctype html>
|
||||
<meta charset=utf-8>
|
||||
<title>Test for Bug 1123875</title>
|
||||
<script src=/resources/testharness.js></script>
|
||||
<script src=/resources/testharnessreport.js></script>
|
||||
<div id=log></div>
|
||||
<script>
|
||||
test(() => {
|
||||
assert_throws(new TypeError, () => {
|
||||
"use strict";
|
||||
document.childNodes.length = 0;
|
||||
});
|
||||
}, "setting a readonly attribute on a proxy in strict mode should throw a TypeError");
|
||||
</script>
|
Загрузка…
Ссылка в новой задаче