Bug 668822 - Move input.size reflection tests to test_input_attributes_reflection.html. r=Ms2ger

This commit is contained in:
Mounir Lamouri 2011-07-06 00:44:43 +02:00
parent 5f0c5f1d55
commit 2a06b2662d
3 changed files with 11 additions and 39 deletions

View File

@ -241,7 +241,6 @@ _TEST_FILES = \
test_bug297761.html \
file_bug297761.html \
test_bug607145.html \
test_bug601061.html \
test_bug596511.html \
reflect.js \
test_bug611189.html \

View File

@ -1,24 +1,20 @@
<!DOCTYPE HTML>
<html>
<!--
https://bugzilla.mozilla.org/show_bug.cgi?id=551670
-->
<head>
<title>Test for Bug 551670</title>
<title>Test for HTMLInputElement attributes reflection</title>
<script type="application/javascript" src="/MochiKit/packed.js"></script>
<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>
<a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=551670">Mozilla Bug 551670</a>
<p id="display"></p>
<div id="content" style="display: none">
</div>
<pre id="test">
<script type="application/javascript">
/** Test for Bug 551670 **/
/** Test for HTMLInputElement attributes reflection **/
// TODO: maybe make those reflections be tested against all input types.
@ -112,7 +108,15 @@ reflectString({
// TODO: readOnly (boolean)
// TODO: required (boolean)
// TODO: size (unsigned long)
// .size
reflectUnsignedInt({
element: document.createElement("input"),
attribute: "size",
nonZero: true,
defaultValue: 20,
});
// TODO: src (URL)
// TODO: step (not implemented)

View File

@ -1,31 +0,0 @@
<!DOCTYPE HTML>
<html>
<!--
https://bugzilla.mozilla.org/show_bug.cgi?id=601061
-->
<head>
<title>Test for Bug 601061</title>
<script type="application/javascript" src="/MochiKit/packed.js"></script>
<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>
<a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=601061">Mozilla Bug 601061</a>
<p id="display"></p>
<pre id="test">
<script type="application/javascript">
/** Test for Bug 601061 **/
reflectUnsignedInt({
element: document.createElement("input"),
attribute: "size",
nonZero: true,
defaultValue: 20,
});
</script>
</pre>
</body>
</html>