Bug 837597 - Part c: Add a test for HTMLModElement.dateTime reflection; r=bz

--HG--
rename : content/html/content/test/test_map_attributes_reflection.html => content/html/content/test/test_mod_attributes_reflection.html
This commit is contained in:
Ms2ger 2013-02-07 09:08:58 +01:00
parent 6c3cfca206
commit bd659cc3ac
2 changed files with 34 additions and 0 deletions

View File

@ -338,6 +338,7 @@ MOCHITEST_FILES = \
test_formelements.html \ test_formelements.html \
test_rowscollection.html \ test_rowscollection.html \
test_map_attributes_reflection.html \ test_map_attributes_reflection.html \
test_mod_attributes_reflection.html \
test_mozaudiochannel.html \ test_mozaudiochannel.html \
test_style_attributes_reflection.html \ test_style_attributes_reflection.html \
$(NULL) $(NULL)

View File

@ -0,0 +1,33 @@
<!DOCTYPE HTML>
<html>
<head>
<title>Test for HTMLModElement attributes reflection</title>
<script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
<script type="application/javascript" src="reflect.js"></script>
<link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
</head>
<body>
<p id="display"></p>
<div id="content" style="display: none">
</div>
<pre id="test">
<script type="application/javascript">
/** Test for HTMLModElement attributes reflection **/
// TODO: cite (URL)
// .dateTime (String)
reflectString({
element: document.createElement("ins"),
attribute: "dateTime",
})
reflectString({
element: document.createElement("del"),
attribute: "dateTime",
})
</script>
</pre>
</body>
</html>