mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-14 03:07:31 +09:00
import FIREFOX_52_6_0esr_RELEASE from mozilla-esr52 hg repo
This commit is contained in:
commit
dcd9973243
150858 changed files with 23884658 additions and 0 deletions
|
|
@ -0,0 +1,47 @@
|
|||
<!DOCTYPE HTML>
|
||||
<html>
|
||||
<head>
|
||||
<title>Forms</title>
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<p>
|
||||
<h3>input_autocomplete</h3>
|
||||
</p>
|
||||
|
||||
<li>input text in textbox and press enter key.</li>
|
||||
<li>When you input same text, you can see hint text.</li>
|
||||
|
||||
<hr>
|
||||
|
||||
<div id="log"></div>
|
||||
|
||||
<form method="post"
|
||||
enctype="application/x-www-form-urlencoded"
|
||||
action=""
|
||||
id="input_form">
|
||||
<p><input type='text' id='input_text'></p>
|
||||
</form>
|
||||
|
||||
<script>
|
||||
|
||||
var input_text = document.getElementById("input_text");
|
||||
input_text.autocomplete = 'on';
|
||||
|
||||
if (typeof(input_text.autocomplete) == "string") {
|
||||
if (input_text.autocomplete != "on") {
|
||||
test(function() {
|
||||
assert_true(false, "autocomplete attribute is not correct.");
|
||||
});
|
||||
}
|
||||
} else {
|
||||
test(function() {
|
||||
assert_unreached("autocomplete attribute is not exist.");
|
||||
});
|
||||
}
|
||||
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -0,0 +1,47 @@
|
|||
<!DOCTYPE HTML>
|
||||
<html>
|
||||
<head>
|
||||
<title>Forms</title>
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<p>
|
||||
<h3>input_list</h3>
|
||||
</p>
|
||||
<li>List is showed list when click the input control.</li>
|
||||
<hr>
|
||||
|
||||
<div id="log"></div>
|
||||
|
||||
<form method="post"
|
||||
enctype="application/x-www-form-urlencoded"
|
||||
action=""
|
||||
name="input_form">
|
||||
<p><input type='text' id='input_url' list="urls"></p>
|
||||
<datalist id="urls">
|
||||
<option value="http://www.google.com/" label="Google">
|
||||
<option value="http://www.reddit.com/" label="Reddit">
|
||||
</datalist>
|
||||
</form>
|
||||
|
||||
<script>
|
||||
|
||||
var input_url = document.getElementById("input_url");
|
||||
var ele = input_url.list;
|
||||
|
||||
if (typeof(ele) != "object") {
|
||||
if (typeof(ele) == "null") {
|
||||
test(function() {
|
||||
assert_unreached("list attribute is not correct.");
|
||||
});
|
||||
} else {
|
||||
test(function() {
|
||||
assert_unreached("list attribute is not exist.");
|
||||
});
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -0,0 +1,52 @@
|
|||
<!DOCTYPE HTML>
|
||||
<html>
|
||||
<head>
|
||||
<title>Forms</title>
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<p>
|
||||
<h3>input_valueAsDate</h3>
|
||||
</p>
|
||||
<li>Date is showed in input when window is loaded.</li>
|
||||
<hr>
|
||||
|
||||
<div id="log"></div>
|
||||
|
||||
<form method="post"
|
||||
enctype="application/x-www-form-urlencoded"
|
||||
action=""
|
||||
name="input_form">
|
||||
<p><input type='date' id='input_date'></p>
|
||||
</form>
|
||||
|
||||
<script>
|
||||
|
||||
var input_date = document.getElementById("input_date");
|
||||
// Setting
|
||||
try {
|
||||
input_date.valueAsDate = new Date();
|
||||
} catch(e) {
|
||||
test(function() {
|
||||
assert_unreached("Failed to set valueAsDate attribute.");
|
||||
});
|
||||
}
|
||||
|
||||
// Getting
|
||||
if (input_date.valueAsDate != null) {
|
||||
if (typeof(input_date.valueAsDate) != "object") {
|
||||
test(function() {
|
||||
assert_true(false, "valueAsDate attribute is not correct.");
|
||||
});
|
||||
}
|
||||
} else {
|
||||
test(function() {
|
||||
assert_unreached("Failed to get valueAsDate attribute.");
|
||||
});
|
||||
}
|
||||
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -0,0 +1,44 @@
|
|||
<!DOCTYPE HTML>
|
||||
<html>
|
||||
<head>
|
||||
<title>Forms</title>
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<p>
|
||||
<h3>input_valueAsNumber</h3>
|
||||
</p>
|
||||
<li>Number 5 is showed in input when window is loaded.</li>
|
||||
<hr>
|
||||
|
||||
<div id="log"></div>
|
||||
|
||||
<form method="post"
|
||||
enctype="application/x-www-form-urlencoded"
|
||||
action=""
|
||||
name="input_form">
|
||||
<p><input type='number' id='input_number'></p>
|
||||
</form>
|
||||
|
||||
<script>
|
||||
|
||||
var input_number = document.getElementById("input_number");
|
||||
input_number.valueAsNumber = 5;
|
||||
|
||||
if (typeof(input_number.valueAsNumber) == "number") {
|
||||
if (input_number.value != 5) {
|
||||
test(function() {
|
||||
assert_true(false, "valueAsNumber attribute is not correct.");
|
||||
});
|
||||
}
|
||||
} else {
|
||||
test(function() {
|
||||
assert_unreached("valueAsNumber attribute is not exist.");
|
||||
});
|
||||
}
|
||||
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -0,0 +1,56 @@
|
|||
<!DOCTYPE HTML>
|
||||
<html>
|
||||
<head>
|
||||
<title>Forms</title>
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<p>
|
||||
<h3>select_length</h3>
|
||||
</p>
|
||||
|
||||
<li>In select control there is only 3 items.</li>
|
||||
|
||||
<hr>
|
||||
|
||||
<div id="log"></div>
|
||||
|
||||
<form method="post"
|
||||
enctype="application/x-www-form-urlencoded"
|
||||
action=""
|
||||
id="input_form">
|
||||
<p>
|
||||
<label for="unittype">Select unit type:</label>
|
||||
<select id="unittype" name="unittype">
|
||||
<option value="1"> Miner </option>
|
||||
<option value="2"> Puffer </option>
|
||||
<option value="3" selected> Snipey </option>
|
||||
<option value="4"> Max </option>
|
||||
<option value="5"> Firebot </option>
|
||||
</select>
|
||||
</p>
|
||||
</form>
|
||||
|
||||
<script>
|
||||
|
||||
var select = document.getElementById("unittype");
|
||||
var length = select.length;
|
||||
select.length = 3;
|
||||
|
||||
if (typeof(length) == "number") {
|
||||
if (length != 5) {
|
||||
test(function() {
|
||||
assert_true(false, "length attribute is not correct.");
|
||||
});
|
||||
}
|
||||
} else {
|
||||
test(function() {
|
||||
assert_unreached("length attribute is not exist.");
|
||||
});
|
||||
}
|
||||
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -0,0 +1,50 @@
|
|||
<!DOCTYPE HTML>
|
||||
<html>
|
||||
<head>
|
||||
<title>Forms</title>
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<p>
|
||||
<h3>select_selectedIndex</h3>
|
||||
</p>
|
||||
|
||||
<li>In select control second item is selected.</li>
|
||||
|
||||
<hr>
|
||||
|
||||
<div id="log"></div>
|
||||
|
||||
<form method="post"
|
||||
enctype="application/x-www-form-urlencoded"
|
||||
action=""
|
||||
id="input_form">
|
||||
<p>
|
||||
<label for="unittype">Select unit type:</label>
|
||||
<select id="unittype" name="unittype">
|
||||
<option value="1"> Miner </option>
|
||||
<option value="2"> Puffer </option>
|
||||
<option value="3" selected> Snipey </option>
|
||||
<option value="4"> Max </option>
|
||||
<option value="5"> Firebot </option>
|
||||
</select>
|
||||
</p>
|
||||
</form>
|
||||
|
||||
<script>
|
||||
|
||||
var select = document.getElementById("unittype");
|
||||
var selectedindex = select.selectedIndex;
|
||||
|
||||
if (selectedindex != 2) {
|
||||
test(function() {
|
||||
assert_true(false, "selectedindex attribute is not correct.");
|
||||
});
|
||||
}
|
||||
|
||||
select.selectedIndex = 1;
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -0,0 +1,44 @@
|
|||
<!DOCTYPE HTML>
|
||||
<html>
|
||||
<head>
|
||||
<title>Forms</title>
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<p>
|
||||
<h3>button_checkValidity</h3>
|
||||
</p>
|
||||
|
||||
<hr>
|
||||
|
||||
<div id="log"></div>
|
||||
|
||||
<form method="post"
|
||||
enctype="application/x-www-form-urlencoded"
|
||||
action=""
|
||||
id="input_form">
|
||||
<p><button id='button_id'>button</button></p>
|
||||
</form>
|
||||
<script>
|
||||
|
||||
var button = document.getElementById("button_id");
|
||||
|
||||
try
|
||||
{
|
||||
var ret = button.checkValidity();
|
||||
|
||||
test(function() {
|
||||
assert_equals(ret, true, "calling of checkValidity method is failed.");
|
||||
});
|
||||
}
|
||||
catch (e) {
|
||||
test(function() {
|
||||
assert_unreached("autofocus attribute is not exist.");
|
||||
});
|
||||
}
|
||||
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -0,0 +1,48 @@
|
|||
<!DOCTYPE HTML>
|
||||
<html>
|
||||
<head>
|
||||
<title>Forms</title>
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<p>
|
||||
<h3>button_labels</h3>
|
||||
</p>
|
||||
|
||||
<hr>
|
||||
|
||||
<div id="log"></div>
|
||||
|
||||
<form method="post"
|
||||
enctype="application/x-www-form-urlencoded"
|
||||
action=""
|
||||
id="input_form">
|
||||
<p><label>Full name:<label>(name)<button id='button_id1'>button1</button><small>Format: First Last</small></label></label></p>
|
||||
<p><label>Age: <button id='button_id2'>button2</button></label></p>
|
||||
</form>
|
||||
<script>
|
||||
|
||||
var button1 = document.getElementById("button_id1");
|
||||
var button2 = document.getElementById("button_id2");
|
||||
|
||||
if (typeof(button1.labels) == "object") {
|
||||
if (button1.labels.length == 2 && button2.labels.length == 1) {
|
||||
test(function() {
|
||||
assert_true(true, "labels attribute is correct.");
|
||||
});
|
||||
} else {
|
||||
test(function() {
|
||||
assert_unreached("labels attribute is not correct.");
|
||||
});
|
||||
}
|
||||
} else {
|
||||
test(function() {
|
||||
assert_unreached("labels attribute is not exist.");
|
||||
});
|
||||
}
|
||||
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -0,0 +1,43 @@
|
|||
<!DOCTYPE HTML>
|
||||
<html>
|
||||
<head>
|
||||
<title>Forms</title>
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<p>
|
||||
<h3>button_setCustomValidity</h3>
|
||||
</p>
|
||||
|
||||
<hr>
|
||||
|
||||
<div id="log"></div>
|
||||
|
||||
<form method="post"
|
||||
enctype="application/x-www-form-urlencoded"
|
||||
action=""
|
||||
id="input_form">
|
||||
<p><button id='button_id'>button</button></p>
|
||||
</form>
|
||||
<script>
|
||||
|
||||
var button = document.getElementById("button_id");
|
||||
|
||||
try
|
||||
{
|
||||
button.setCustomValidity("custom error");
|
||||
test(function() {
|
||||
assert_true(true, "calling of setCustomValidity method is successed.");
|
||||
});
|
||||
}
|
||||
catch (e) {
|
||||
test(function() {
|
||||
assert_unreached("Error is raised.");
|
||||
});
|
||||
}
|
||||
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -0,0 +1,40 @@
|
|||
<!DOCTYPE HTML>
|
||||
<html>
|
||||
<head>
|
||||
<title>Forms</title>
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<p>
|
||||
<h3>button_validationMessage</h3>
|
||||
</p>
|
||||
|
||||
<hr>
|
||||
|
||||
<div id="log"></div>
|
||||
|
||||
<form method="post"
|
||||
enctype="application/x-www-form-urlencoded"
|
||||
action=""
|
||||
id="input_form">
|
||||
<p><button id='button_id'>button</button></p>
|
||||
</form>
|
||||
<script>
|
||||
|
||||
var button = document.getElementById("button_id");
|
||||
|
||||
if (typeof(button.validationMessage) == "string") {
|
||||
test(function() {
|
||||
assert_equals(button.validationMessage, "", "validationMessage attribute is not correct.");
|
||||
});
|
||||
} else {
|
||||
test(function() {
|
||||
assert_unreached("validationMessage attribute is not exist.");
|
||||
});
|
||||
}
|
||||
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -0,0 +1,40 @@
|
|||
<!DOCTYPE HTML>
|
||||
<html>
|
||||
<head>
|
||||
<title>Forms</title>
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<p>
|
||||
<h3>button_validity</h3>
|
||||
</p>
|
||||
|
||||
<hr>
|
||||
|
||||
<div id="log"></div>
|
||||
|
||||
<form method="post"
|
||||
enctype="application/x-www-form-urlencoded"
|
||||
action=""
|
||||
id="input_form">
|
||||
<p><button id='button_id'>button</button></p>
|
||||
</form>
|
||||
<script>
|
||||
|
||||
var button = document.getElementById("button_id");
|
||||
|
||||
if (typeof(button.validity) == "object") {
|
||||
test(function() {
|
||||
assert_equals(button.validity.valueMissing, false, "validity attribute is not correct.");
|
||||
});
|
||||
} else {
|
||||
test(function() {
|
||||
assert_unreached("validity attribute is not exist.");
|
||||
});
|
||||
}
|
||||
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -0,0 +1,40 @@
|
|||
<!DOCTYPE HTML>
|
||||
<html>
|
||||
<head>
|
||||
<title>Forms</title>
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<p>
|
||||
<h3>button_willValidate</h3>
|
||||
</p>
|
||||
|
||||
<hr>
|
||||
|
||||
<div id="log"></div>
|
||||
|
||||
<form method="post"
|
||||
enctype="application/x-www-form-urlencoded"
|
||||
action=""
|
||||
id="input_form">
|
||||
<p><button id='button_id'>button</button></p>
|
||||
</form>
|
||||
<script>
|
||||
|
||||
var button = document.getElementById("button_id");
|
||||
|
||||
if (typeof(button.willValidate) == "boolean") {
|
||||
test(function() {
|
||||
assert_equals(button.willValidate, true, "willValidate attribute is not correct.");
|
||||
});
|
||||
} else {
|
||||
test(function() {
|
||||
assert_unreached("willValidate attribute is not exist.");
|
||||
});
|
||||
}
|
||||
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -0,0 +1,45 @@
|
|||
<!DOCTYPE HTML>
|
||||
<html>
|
||||
<head>
|
||||
<title>Forms</title>
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<p>
|
||||
<h3>FieldSet_checkValidity</h3>
|
||||
</p>
|
||||
|
||||
<hr>
|
||||
|
||||
<div id="log"></div>
|
||||
|
||||
<form method="post"
|
||||
enctype="application/x-www-form-urlencoded"
|
||||
action=""
|
||||
id="input_form">
|
||||
<fieldset id="input_field">
|
||||
</fieldset>
|
||||
</form>
|
||||
<script>
|
||||
|
||||
var field = document.getElementById("input_field");
|
||||
|
||||
try
|
||||
{
|
||||
var ret = field.checkValidity();
|
||||
|
||||
test(function() {
|
||||
assert_equals(ret, true, "calling of checkValidity method is failed.");
|
||||
});
|
||||
}
|
||||
catch (e) {
|
||||
test(function() {
|
||||
assert_unreached("Error is raised.");
|
||||
});
|
||||
}
|
||||
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -0,0 +1,44 @@
|
|||
<!DOCTYPE HTML>
|
||||
<html>
|
||||
<head>
|
||||
<title>Forms</title>
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<p>
|
||||
<h3>FieldSet_setCustomValidity</h3>
|
||||
</p>
|
||||
|
||||
<hr>
|
||||
|
||||
<div id="log"></div>
|
||||
|
||||
<form method="post"
|
||||
enctype="application/x-www-form-urlencoded"
|
||||
action=""
|
||||
id="input_form">
|
||||
<fieldset id="input_field">
|
||||
</fieldset>
|
||||
</form>
|
||||
<script>
|
||||
|
||||
var field = document.getElementById("input_field");
|
||||
|
||||
try
|
||||
{
|
||||
field.setCustomValidity("custom error");
|
||||
test(function() {
|
||||
assert_true(true, "calling of setCustomValidity method is successed.");
|
||||
});
|
||||
}
|
||||
catch (e) {
|
||||
test(function() {
|
||||
assert_unreached("Error is raised.");
|
||||
});
|
||||
}
|
||||
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -0,0 +1,41 @@
|
|||
<!DOCTYPE HTML>
|
||||
<html>
|
||||
<head>
|
||||
<title>Forms</title>
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<p>
|
||||
<h3>FieldSet_validationMessage</h3>
|
||||
</p>
|
||||
|
||||
<hr>
|
||||
|
||||
<div id="log"></div>
|
||||
|
||||
<form method="post"
|
||||
enctype="application/x-www-form-urlencoded"
|
||||
action=""
|
||||
id="input_form">
|
||||
<fieldset id="input_field">
|
||||
</fieldset>
|
||||
</form>
|
||||
<script>
|
||||
|
||||
var field = document.getElementById("input_field");
|
||||
|
||||
if (typeof(field.validationMessage) == "string") {
|
||||
test(function() {
|
||||
assert_equals(field.validationMessage, "", "validationMessage attribute is not correct.");
|
||||
});
|
||||
} else {
|
||||
test(function() {
|
||||
assert_unreached("validationMessage attribute is not exist.");
|
||||
});
|
||||
}
|
||||
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -0,0 +1,41 @@
|
|||
<!DOCTYPE HTML>
|
||||
<html>
|
||||
<head>
|
||||
<title>Forms</title>
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<p>
|
||||
<h3>FieldSet_validity</h3>
|
||||
</p>
|
||||
|
||||
<hr>
|
||||
|
||||
<div id="log"></div>
|
||||
|
||||
<form method="post"
|
||||
enctype="application/x-www-form-urlencoded"
|
||||
action=""
|
||||
id="input_form">
|
||||
<fieldset id="input_field">
|
||||
</fieldset>
|
||||
</form>
|
||||
<script>
|
||||
|
||||
var field = document.getElementById("input_field");
|
||||
|
||||
if (typeof(field.validity) == "object") {
|
||||
test(function() {
|
||||
assert_equals(field.validity.valueMissing, false, "validity attribute is not correct.");
|
||||
});
|
||||
} else {
|
||||
test(function() {
|
||||
assert_unreached("validity attribute is not exist.");
|
||||
});
|
||||
}
|
||||
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -0,0 +1,41 @@
|
|||
<!DOCTYPE HTML>
|
||||
<html>
|
||||
<head>
|
||||
<title>Forms</title>
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<p>
|
||||
<h3>FieldSet_willValidate</h3>
|
||||
</p>
|
||||
|
||||
<hr>
|
||||
|
||||
<div id="log"></div>
|
||||
|
||||
<form method="post"
|
||||
enctype="application/x-www-form-urlencoded"
|
||||
action=""
|
||||
id="input_form">
|
||||
<fieldset id="input_field">
|
||||
</fieldset>
|
||||
</form>
|
||||
<script>
|
||||
|
||||
var field = document.getElementById("input_field");
|
||||
|
||||
if (typeof(field.willValidate) == "boolean") {
|
||||
test(function() {
|
||||
assert_equals(field.willValidate, false, "willValidate attribute is not correct.");
|
||||
});
|
||||
} else {
|
||||
test(function() {
|
||||
assert_unreached("willValidate attribute is not exist.");
|
||||
});
|
||||
}
|
||||
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -0,0 +1,43 @@
|
|||
<!DOCTYPE HTML>
|
||||
<html>
|
||||
<head>
|
||||
<title>Forms</title>
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<p>
|
||||
<h3>Form_action</h3>
|
||||
</p>
|
||||
|
||||
<hr>
|
||||
|
||||
<div id="log"></div>
|
||||
|
||||
<form method="post"
|
||||
enctype="application/x-www-form-urlencoded"
|
||||
action="http://www.google.com/"
|
||||
id="input_form">
|
||||
<p><input type=hidden name="custname"></p>
|
||||
<p><input type=hidden name="custtel"></p>
|
||||
<p><input type=hidden name="custemail"></p>
|
||||
|
||||
</form>
|
||||
<script>
|
||||
|
||||
var form = document.getElementById("input_form");
|
||||
|
||||
if (typeof(form.action) == "string") {
|
||||
test(function() {
|
||||
assert_equals(form.action, "http://www.google.com/", "action attribute is not correct.");
|
||||
});
|
||||
} else {
|
||||
test(function() {
|
||||
assert_unreached("action attribute is not exist.");
|
||||
});
|
||||
}
|
||||
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -0,0 +1,47 @@
|
|||
<!DOCTYPE HTML>
|
||||
<html>
|
||||
<head>
|
||||
<title>Forms</title>
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<p>
|
||||
<h3>Form_checkValidity</h3>
|
||||
</p>
|
||||
|
||||
<hr>
|
||||
|
||||
<div id="log"></div>
|
||||
|
||||
<form method="post"
|
||||
enctype="application/x-www-form-urlencoded"
|
||||
action=""
|
||||
id="input_form">
|
||||
<p><input type=hidden name="custname"></p>
|
||||
<p><input type=hidden name="custtel"></p>
|
||||
<p><input type=hidden name="custemail"></p>
|
||||
|
||||
</form>
|
||||
<script>
|
||||
|
||||
var form = document.getElementById("input_form");
|
||||
|
||||
try
|
||||
{
|
||||
var ret = form.checkValidity();
|
||||
|
||||
test(function() {
|
||||
assert_equals(ret, true, "calling of checkValidity method is failed.");
|
||||
});
|
||||
}
|
||||
catch (e) {
|
||||
test(function() {
|
||||
assert_unreached("Error is raised.");
|
||||
});
|
||||
}
|
||||
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -0,0 +1,38 @@
|
|||
<!DOCTYPE HTML>
|
||||
<html>
|
||||
<head>
|
||||
<title>Forms</title>
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<p>
|
||||
<h3>Form_length</h3>
|
||||
</p>
|
||||
|
||||
<hr>
|
||||
|
||||
<div id="log"></div>
|
||||
|
||||
<form method="post"
|
||||
enctype="application/x-www-form-urlencoded"
|
||||
action=""
|
||||
id="input_form">
|
||||
<p><input type=hidden name="custname"></p>
|
||||
<p><input type=hidden name="custtel"></p>
|
||||
<p><input type=hidden name="custemail"></p>
|
||||
|
||||
</form>
|
||||
<script>
|
||||
|
||||
var form = document.getElementById("input_form");
|
||||
var len = form.length;
|
||||
|
||||
test(function() {
|
||||
assert_equals(len, 3, "length attribute is not correct.");
|
||||
});
|
||||
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -0,0 +1,51 @@
|
|||
<!DOCTYPE HTML>
|
||||
<html>
|
||||
<head>
|
||||
<title>Forms</title>
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<p>
|
||||
<h3>Form_submit</h3>
|
||||
</p>
|
||||
|
||||
<hr>
|
||||
|
||||
<div id="log"></div>
|
||||
|
||||
<form method="post"
|
||||
enctype="application/x-www-form-urlencoded"
|
||||
action="?x=1"
|
||||
id="input_form">
|
||||
<p><input type=hidden name="custname"></p>
|
||||
<p><input type=hidden name="custtel"></p>
|
||||
<p><input type=hidden name="custemail"></p>
|
||||
|
||||
</form>
|
||||
<script>
|
||||
|
||||
var form = document.getElementById("input_form");
|
||||
|
||||
try
|
||||
{
|
||||
var url = location.href;
|
||||
pos = url.lastIndexOf("?x=1");
|
||||
if (pos == -1) {
|
||||
form.submit();
|
||||
} else {
|
||||
test(function() {
|
||||
assert_true(true, "calling of submit method is successed.");
|
||||
});
|
||||
}
|
||||
}
|
||||
catch (e) {
|
||||
test(function() {
|
||||
assert_unreached("Error is raised.");
|
||||
});
|
||||
}
|
||||
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -0,0 +1,44 @@
|
|||
<!DOCTYPE HTML>
|
||||
<html>
|
||||
<head>
|
||||
<title>Forms</title>
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<p>
|
||||
<h3>input_checkValidity</h3>
|
||||
</p>
|
||||
|
||||
<hr>
|
||||
|
||||
<div id="log"></div>
|
||||
|
||||
<form method="post"
|
||||
enctype="application/x-www-form-urlencoded"
|
||||
action=""
|
||||
id="input_form">
|
||||
<p><input type='hidden' id='input_text'></p>
|
||||
</form>
|
||||
<script>
|
||||
|
||||
var input = document.getElementById("input_text");
|
||||
|
||||
try
|
||||
{
|
||||
var ret = input.checkValidity();
|
||||
|
||||
test(function() {
|
||||
assert_equals(ret, true, "calling of checkValidity method is failed.");
|
||||
});
|
||||
}
|
||||
catch (e) {
|
||||
test(function() {
|
||||
assert_unreached("Error is raised.");
|
||||
});
|
||||
}
|
||||
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -0,0 +1,42 @@
|
|||
<!DOCTYPE HTML>
|
||||
<html>
|
||||
<head>
|
||||
<title>Forms</title>
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<p>
|
||||
<h3>input_height</h3>
|
||||
</p>
|
||||
|
||||
<hr>
|
||||
|
||||
<div id="log"></div>
|
||||
|
||||
<form method="post"
|
||||
enctype="application/x-www-form-urlencoded"
|
||||
action=""
|
||||
name="input_form">
|
||||
<p><input type='image' id='input_text'></p>
|
||||
</form>
|
||||
|
||||
<script>
|
||||
|
||||
var input_text = document.getElementById("input_text");
|
||||
input_text.height = 30;
|
||||
|
||||
if (typeof(input_text.height) == "number") {
|
||||
test(function() {
|
||||
assert_equals(input_text.height, 30, "formTarget attribute is not correct.");
|
||||
});
|
||||
} else {
|
||||
test(function() {
|
||||
assert_unreached("height attribute is not exist.");
|
||||
});
|
||||
}
|
||||
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -0,0 +1,49 @@
|
|||
<!DOCTYPE HTML>
|
||||
<html>
|
||||
<head>
|
||||
<title>Forms</title>
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<p>
|
||||
<h3>input_labels</h3>
|
||||
</p>
|
||||
|
||||
<hr>
|
||||
|
||||
<div id="log"></div>
|
||||
|
||||
<form method="post"
|
||||
enctype="application/x-www-form-urlencoded"
|
||||
action=""
|
||||
id="input_form">
|
||||
<p><label>Full name:<label>(name)<input name=fn id='input_text1'> <small>Format: First Last</small></label></label></p>
|
||||
<p><label>Age: <input name=age type=number min=0 id='input_text2'></label></p>
|
||||
<p><label>Post code: <input name=pc> <small>Format: AB12 3CD</small></label></p>
|
||||
</form>
|
||||
<script>
|
||||
|
||||
var input1 = document.getElementById("input_text1");
|
||||
var input2 = document.getElementById("input_text2");
|
||||
|
||||
if (typeof(input1.labels) == "object") {
|
||||
if (input1.labels.length == 2 && input2.labels.length == 1) {
|
||||
test(function() {
|
||||
assert_true(true, "labels attribute is correct.");
|
||||
});
|
||||
} else {
|
||||
test(function() {
|
||||
assert_unreached("labels attribute is not correct.");
|
||||
});
|
||||
}
|
||||
} else {
|
||||
test(function() {
|
||||
assert_unreached("labels attribute is not exist.");
|
||||
});
|
||||
}
|
||||
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -0,0 +1,43 @@
|
|||
<!DOCTYPE HTML>
|
||||
<html>
|
||||
<head>
|
||||
<title>Forms</title>
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<p>
|
||||
<h3>input_setCustomValidity</h3>
|
||||
</p>
|
||||
|
||||
<hr>
|
||||
|
||||
<div id="log"></div>
|
||||
|
||||
<form method="post"
|
||||
enctype="application/x-www-form-urlencoded"
|
||||
action=""
|
||||
id="input_form">
|
||||
<p><input type='hidden' id='input_text'></p>
|
||||
</form>
|
||||
<script>
|
||||
|
||||
var input = document.getElementById("input_text");
|
||||
|
||||
try
|
||||
{
|
||||
input.setCustomValidity("custom error");
|
||||
test(function() {
|
||||
assert_true(true, "calling of setCustomValidity method is successed.");
|
||||
});
|
||||
}
|
||||
catch (e) {
|
||||
test(function() {
|
||||
assert_unreached("Error is raised.");
|
||||
});
|
||||
}
|
||||
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -0,0 +1,44 @@
|
|||
<!DOCTYPE HTML>
|
||||
<html>
|
||||
<head>
|
||||
<title>Forms</title>
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<p>
|
||||
<h3>input_stepDown</h3>
|
||||
</p>
|
||||
|
||||
<hr>
|
||||
|
||||
<div id="log"></div>
|
||||
|
||||
<form method="post"
|
||||
enctype="application/x-www-form-urlencoded"
|
||||
action=""
|
||||
name="input_form">
|
||||
<p><input type='number' id='input_number'></p>
|
||||
</form>
|
||||
|
||||
<script>
|
||||
var input_number = document.getElementById("input_number");
|
||||
input_number.max = "30";
|
||||
input_number.step = "3";
|
||||
input_number.value = "30";
|
||||
input_number.stepDown(5);
|
||||
|
||||
if (typeof(input_number.stepDown) == "function") {
|
||||
test(function() {
|
||||
assert_equals(input_number.value, "15", "call of stepDown method is failed.");
|
||||
});
|
||||
} else {
|
||||
test(function() {
|
||||
assert_unreached("stepDown attribute is not exist.");
|
||||
});
|
||||
}
|
||||
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -0,0 +1,45 @@
|
|||
<!DOCTYPE HTML>
|
||||
<html>
|
||||
<head>
|
||||
<title>Forms</title>
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<p>
|
||||
<h3>input_stepUp</h3>
|
||||
</p>
|
||||
|
||||
<hr>
|
||||
|
||||
<div id="log"></div>
|
||||
|
||||
<form method="post"
|
||||
enctype="application/x-www-form-urlencoded"
|
||||
action=""
|
||||
name="input_form">
|
||||
<p><input type='number' id='input_number'></p>
|
||||
</form>
|
||||
|
||||
<script>
|
||||
|
||||
var input_number = document.getElementById("input_number");
|
||||
input_number.max = "30";
|
||||
input_number.step = "3";
|
||||
input_number.value = "0";
|
||||
input_number.stepUp(5);
|
||||
|
||||
if (typeof(input_number.stepUp) == "function") {
|
||||
test(function() {
|
||||
assert_equals(input_number.value, "15", "call of stepUp method is failed.");
|
||||
});
|
||||
} else {
|
||||
test(function() {
|
||||
assert_unreached("stepUp attribute is not exist.");
|
||||
});
|
||||
}
|
||||
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -0,0 +1,40 @@
|
|||
<!DOCTYPE HTML>
|
||||
<html>
|
||||
<head>
|
||||
<title>Forms</title>
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<p>
|
||||
<h3>input_validationMessage</h3>
|
||||
</p>
|
||||
|
||||
<hr>
|
||||
|
||||
<div id="log"></div>
|
||||
|
||||
<form method="post"
|
||||
enctype="application/x-www-form-urlencoded"
|
||||
action=""
|
||||
id="input_form">
|
||||
<p><input type='hidden' id='input_text'></p>
|
||||
</form>
|
||||
<script>
|
||||
|
||||
var input = document.getElementById("input_text");
|
||||
|
||||
if (typeof(input.validationMessage) == "string") {
|
||||
test(function() {
|
||||
assert_equals(input.validationMessage, "", "validationMessage attribute is not correct.");
|
||||
});
|
||||
} else {
|
||||
test(function() {
|
||||
assert_unreached("validationMessage attribute is not exist.");
|
||||
});
|
||||
}
|
||||
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -0,0 +1,40 @@
|
|||
<!DOCTYPE HTML>
|
||||
<html>
|
||||
<head>
|
||||
<title>Forms</title>
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<p>
|
||||
<h3>input_validity</h3>
|
||||
</p>
|
||||
|
||||
<hr>
|
||||
|
||||
<div id="log"></div>
|
||||
|
||||
<form method="post"
|
||||
enctype="application/x-www-form-urlencoded"
|
||||
action=""
|
||||
id="input_form">
|
||||
<p><input type='hidden' id='input_text'></p>
|
||||
</form>
|
||||
<script>
|
||||
|
||||
var input = document.getElementById("input_text");
|
||||
|
||||
if (typeof(input.validity) == "object") {
|
||||
test(function() {
|
||||
assert_equals(input.validity.valueMissing, false, "validity attribute is not correct.");
|
||||
});
|
||||
} else {
|
||||
test(function() {
|
||||
assert_unreached("validity attribute is not exist.");
|
||||
});
|
||||
}
|
||||
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -0,0 +1,41 @@
|
|||
<!DOCTYPE HTML>
|
||||
<html>
|
||||
<head>
|
||||
<title>Forms</title>
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<p>
|
||||
<h3>input_value_INVALID_STATE_ERR</h3>
|
||||
</p>
|
||||
|
||||
<hr>
|
||||
|
||||
<div id="log"></div>
|
||||
|
||||
<form method="post"
|
||||
enctype="application/x-www-form-urlencoded"
|
||||
action=""
|
||||
name="input_form">
|
||||
<p><input type='file' id='input_file'></p>
|
||||
</form>
|
||||
|
||||
<script>
|
||||
|
||||
var input_file = document.getElementById("input_file");
|
||||
try {
|
||||
input_file.value = "val";
|
||||
test(function() {
|
||||
assert_unreached("INVALID_STATE_ERR error is not raised.");
|
||||
});
|
||||
} catch (e) {
|
||||
test(function() {
|
||||
assert_equals(e.code, e["INVALID_STATE_ERR"], "INVALID_STATE_ERR error is not raised.");
|
||||
});
|
||||
}
|
||||
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -0,0 +1,41 @@
|
|||
<!DOCTYPE HTML>
|
||||
<html>
|
||||
<head>
|
||||
<title>Forms</title>
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<p>
|
||||
<h3>input_valueAsDate_INVALID_STATE_ERR</h3>
|
||||
</p>
|
||||
|
||||
<hr>
|
||||
|
||||
<div id="log"></div>
|
||||
|
||||
<form method="post"
|
||||
enctype="application/x-www-form-urlencoded"
|
||||
action=""
|
||||
name="input_form">
|
||||
<p><input type='checkbox' id='input_checkbox'></p>
|
||||
</form>
|
||||
|
||||
<script>
|
||||
var input_checkbox = document.getElementById("input_checkbox");
|
||||
try {
|
||||
input_checkbox.valueAsDate = new Date('2011-11-01');
|
||||
test(function() {
|
||||
assert_reached("INVALID_STATE_ERR error is not raised.");
|
||||
});
|
||||
}
|
||||
catch (e) {
|
||||
test(function() {
|
||||
assert_equals(e.code, e["INVALID_STATE_ERR"], "INVALID_STATE_ERR error is not raised.");
|
||||
});
|
||||
}
|
||||
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -0,0 +1,39 @@
|
|||
<!DOCTYPE HTML>
|
||||
<html>
|
||||
<head>
|
||||
<title>Forms</title>
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<p>
|
||||
<h3>input_valueAsNumber_INVALID_STATE_ERR</h3>
|
||||
</p>
|
||||
|
||||
<hr>
|
||||
|
||||
<div id="log"></div>
|
||||
|
||||
<form method="post"
|
||||
enctype="application/x-www-form-urlencoded"
|
||||
action=""
|
||||
name="input_form">
|
||||
<p><input type='checkbox' id='input_checkbox'></p>
|
||||
</form>
|
||||
|
||||
<script>
|
||||
|
||||
var input_checkbox = document.getElementById("input_checkbox");
|
||||
try {
|
||||
input_checkbox.valueAsNumber = 5;
|
||||
}
|
||||
catch (e) {
|
||||
test(function() {
|
||||
assert_equals(e.code, e["INVALID_STATE_ERR"], "INVALID_STATE_ERR error is not raised.");
|
||||
});
|
||||
}
|
||||
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -0,0 +1,42 @@
|
|||
<!DOCTYPE HTML>
|
||||
<html>
|
||||
<head>
|
||||
<title>Forms</title>
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<p>
|
||||
<h3>input_width</h3>
|
||||
</p>
|
||||
|
||||
<hr>
|
||||
|
||||
<div id="log"></div>
|
||||
|
||||
<form method="post"
|
||||
enctype="application/x-www-form-urlencoded"
|
||||
action=""
|
||||
name="input_form">
|
||||
<p><input type='image' id='input_text'></p>
|
||||
</form>
|
||||
|
||||
<script>
|
||||
|
||||
var input_text = document.getElementById("input_text");
|
||||
input_text.width = 30;
|
||||
|
||||
if (typeof(input_text.width) == "number") {
|
||||
test(function() {
|
||||
assert_equals(input_text.width, 30, "width attribute is not correct.");
|
||||
});
|
||||
} else {
|
||||
test(function() {
|
||||
assert_unreached("width attribute is not exist.");
|
||||
});
|
||||
}
|
||||
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -0,0 +1,40 @@
|
|||
<!DOCTYPE HTML>
|
||||
<html>
|
||||
<head>
|
||||
<title>Forms</title>
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<p>
|
||||
<h3>input_willValidate</h3>
|
||||
</p>
|
||||
|
||||
<hr>
|
||||
|
||||
<div id="log"></div>
|
||||
|
||||
<form method="post"
|
||||
enctype="application/x-www-form-urlencoded"
|
||||
action=""
|
||||
id="input_form">
|
||||
<p><input type='hidden' id='input_text'></p>
|
||||
</form>
|
||||
<script>
|
||||
|
||||
var input = document.getElementById("input_text");
|
||||
|
||||
if (typeof(input.willValidate) == "boolean") {
|
||||
test(function() {
|
||||
assert_equals(input.willValidate, false, "willValidate attribute is not correct.");
|
||||
});
|
||||
} else {
|
||||
test(function() {
|
||||
assert_unreached("willValidate attribute is not exist.");
|
||||
});
|
||||
}
|
||||
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -0,0 +1,44 @@
|
|||
<!DOCTYPE HTML>
|
||||
<html>
|
||||
<head>
|
||||
<title>Forms</title>
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<p>
|
||||
<h3>keygen_checkValidity</h3>
|
||||
</p>
|
||||
|
||||
<hr>
|
||||
|
||||
<div id="log"></div>
|
||||
|
||||
<form method="post"
|
||||
enctype="application/x-www-form-urlencoded"
|
||||
action=""
|
||||
id="input_form">
|
||||
<keygen name='key' id='keygen_id'></keygen>
|
||||
</form>
|
||||
<script>
|
||||
|
||||
var keygen = document.getElementById("keygen_id");
|
||||
|
||||
try
|
||||
{
|
||||
var ret = keygen.checkValidity();
|
||||
|
||||
test(function() {
|
||||
assert_equals(ret, true, "calling of checkValidity method is failed.");
|
||||
});
|
||||
}
|
||||
catch (e) {
|
||||
test(function() {
|
||||
assert_unreached("Error is raised.");
|
||||
});
|
||||
}
|
||||
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -0,0 +1,48 @@
|
|||
<!DOCTYPE HTML>
|
||||
<html>
|
||||
<head>
|
||||
<title>Forms</title>
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<p>
|
||||
<h3>keygen_labels</h3>
|
||||
</p>
|
||||
|
||||
<hr>
|
||||
|
||||
<div id="log"></div>
|
||||
|
||||
<form method="post"
|
||||
enctype="application/x-www-form-urlencoded"
|
||||
action=""
|
||||
id="input_form">
|
||||
<p><label>Full name<label>(name):<keygen name='key1' id='keygen_id1'></keygen></label></label></p>
|
||||
<p><label>Age:<keygen name='key2' id='keygen_id2'></keygen></label></p>
|
||||
</form>
|
||||
<script>
|
||||
|
||||
var keygen1 = document.getElementById("keygen_id1");
|
||||
var keygen2 = document.getElementById("keygen_id2");
|
||||
|
||||
if (typeof(keygen1.labels) == "object") {
|
||||
if (keygen1.labels.length == 2 && keygen2.labels.length == 1) {
|
||||
test(function() {
|
||||
assert_true(true, "labels attribute is correct.");
|
||||
});
|
||||
} else {
|
||||
test(function() {
|
||||
assert_unreached("labels attribute is not correct.");
|
||||
});
|
||||
}
|
||||
} else {
|
||||
test(function() {
|
||||
assert_unreached("labels attribute is not exist.");
|
||||
});
|
||||
}
|
||||
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -0,0 +1,12 @@
|
|||
.pass {
|
||||
color: green;
|
||||
}
|
||||
.fail {
|
||||
color: red;
|
||||
}
|
||||
.manualpass {
|
||||
color: green;
|
||||
}
|
||||
.manualfail {
|
||||
color: red;
|
||||
}
|
||||
|
|
@ -0,0 +1,63 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=0.5, maximum-scale=3.0, user-scalable=yes" />
|
||||
<title>Session History</title>
|
||||
|
||||
<script type="text/javascript">
|
||||
</script>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<p>
|
||||
<b>Session History </b><br/>
|
||||
<hr/>
|
||||
<ol type="1">
|
||||
<font size="2">
|
||||
<!-- <li><a href="history_length.html">history_length</a></li> -->
|
||||
<li><a href="history_state.html">history_state</a></li>
|
||||
|
||||
<li><a href="history_pushstate.html">history_pushState</a></li>
|
||||
<li><a href="history_pushstate_nooptionalparam.html">history_pushState_NoOptionalParam</a></li>
|
||||
<li><a href="history_pushstate_err.html">history_pushState SECURITY_ERR</a></li>
|
||||
<li><a href="history_replacestate.html">history_replaceState</a></li>
|
||||
<li><a href="history_replacestate_nooptionalparam.html">history_replaceStateNoOptionalParam</a></li>
|
||||
<li><a href="history_replacestate_err.html">history_replaceState SECURITY_ERR</a></li>
|
||||
|
||||
<li><a href="history_back.html">history_back</a></li>
|
||||
<li><a href="history_forward.html">history_forward</a></li>
|
||||
|
||||
<li><a href="history_go_minus.html">history_go_minus</a></li>
|
||||
<li><a href="history_go_plus.html">history_go_plus</a></li>
|
||||
<!-- <li><a href="history_go_zero.html">history_go_zero</a></li> -->
|
||||
|
||||
<!-- <li><a href="history_go_under.html">history_go_under</a></li> -->
|
||||
<!-- <li><a href="history_go_over.html">history_go_over</a></li> -->
|
||||
|
||||
<li><a href="location_href.html">location_href</a></li>
|
||||
<li><a href="location_assign.html">location_assign</a></li>
|
||||
<li><a href="location_replace.html">location_replace</a></li>
|
||||
<!-- <li><a href="location_reload.html">location_reload</a></li> -->
|
||||
<li><a href="location_protocol.html">location_protocol</a></li>
|
||||
<li><a href="location_host.html">location_host</a></li>
|
||||
<li><a href="location_hostname.html">location_hostname</a></li>
|
||||
<li><a href="location_port.html">location_port</a></li>
|
||||
<li><a href="location_pathname.html">location_pathname</a></li>
|
||||
<li><a href="location_search.html">location_search</a></li>
|
||||
<li><a href="location_hash.html">location_hash</a></li>
|
||||
|
||||
<li><a href="combination_history_001.html">combination_history_001</a></li>
|
||||
<li><a href="combination_history_002.html">combination_history_002</a></li>
|
||||
<li><a href="combination_history_003.html">combination_history_003</a></li>
|
||||
<li><a href="combination_history_004.html">combination_history_004</a></li>
|
||||
<li><a href="combination_history_005.html">combination_history_005</a></li>
|
||||
<li><a href="combination_history_006.html">combination_history_006</a></li>
|
||||
<li><a href="combination_history_007.html">combination_history_007</a></li>
|
||||
|
||||
</font>
|
||||
</ol>
|
||||
<hr/>
|
||||
<p>
|
||||
</body>
|
||||
</html>
|
||||
Loading…
Add table
Add a link
Reference in a new issue