зеркало из 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 : 6ed902dfed6a7678f813fc21a4affef798484f1a extra : source : 06dbe25231c283191c1cc4fea66c1c76add2c91c
This commit is contained in:
Родитель
622170b4e6
Коммит
e55a1c46a2
|
@ -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>
|
Загрузка…
Ссылка в новой задаче