mirror of
https://github.com/servo/servo.git
synced 2025-08-25 23:28:21 +01:00
Update web-platform-tests and CSS tests.
- Update CSS tests to revision e05bfd5e30ed662c2f8a353577003f8eed230180. - Update web-platform-tests to revision a052787dd5c069a340031011196b73affbd68cd9.
This commit is contained in:
parent
fb4f421c8b
commit
296fa2512b
21852 changed files with 2080936 additions and 892894 deletions
|
@ -1,44 +0,0 @@
|
|||
<!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>
|
|
@ -1,48 +0,0 @@
|
|||
<!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>
|
Loading…
Add table
Add a link
Reference in a new issue