зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1165851 part 2. Add a test for the desired createAttribute/getAttribute behavior. r=smaug
This commit is contained in:
Родитель
75de7c95ec
Коммит
ffcc1e5e8d
|
@ -787,6 +787,7 @@ skip-if = buildapp == 'mulet' || buildapp == 'b2g'
|
|||
[test_bug1118689.html]
|
||||
skip-if = buildapp == 'mulet' || buildapp == 'b2g'
|
||||
[test_integer_attr_with_leading_zero.html]
|
||||
[test_getAttribute_after_createAttribute.html]
|
||||
[test_script_loader_crossorigin_data_url.html]
|
||||
[test_file_negative_date.html]
|
||||
[test_nonascii_blob_url.html]
|
||||
|
|
|
@ -0,0 +1,15 @@
|
|||
<!DOCTYPE html>
|
||||
<meta charset=utf-8>
|
||||
<title>Test for ...</title>
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<div id="log"></div>
|
||||
<script>
|
||||
test(function() {
|
||||
var div = document.createElement("div");
|
||||
var attr = document.createAttribute("FOO");
|
||||
attr.value = "bar";
|
||||
div.setAttributeNode(attr);
|
||||
assert_equals(div.getAttribute("FOO"), "bar");
|
||||
}, "getAttribute should be able to get an attribute created via createAttribute");
|
||||
</script>
|
Загрузка…
Ссылка в новой задаче