-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #19 from esrille/submission/Esrille
Add ol.start reflection tests
- Loading branch information
Showing
2 changed files
with
52 additions
and
0 deletions.
There are no files selected for viewing
26 changes: 26 additions & 0 deletions
26
html/semantics/grouping-content/the-ol-element/ol.start-reflection-1.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<title>ol.start - reflection test</title> | ||
<link rel="author" title="Shiki Okasaka" href="http://shiki.esrille.com/"> | ||
<link rel="author" title="Esrille Inc." href="http://www.esrille.com/"> | ||
<link rel="help" href="http://www.w3.org/TR/html5/grouping-content.html#the-ol-element"> | ||
<meta name="assert" content="This test checks that the start IDL attribute reflects the respective content attribute of the same name."> | ||
<link rel="stylesheet" href="/resources/testharness.css"> | ||
<script src="/resources/testharness.js"></script> | ||
<script src="/resources/testharnessreport.js"></script> | ||
</head> | ||
<body> | ||
<ol id="ol"> | ||
<li>One</li> | ||
<li>Two</li> | ||
<li>Three</li> | ||
</ol> | ||
<div id="log"></div> | ||
<script> | ||
test(function() { | ||
assert_equals(document.getElementById('ol').start, 1); | ||
}) | ||
</script> | ||
</body> | ||
</html> |
26 changes: 26 additions & 0 deletions
26
html/semantics/grouping-content/the-ol-element/ol.start-reflection-2.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<title>ol.start - reflection test</title> | ||
<link rel="author" title="Shiki Okasaka" href="http://shiki.esrille.com/"> | ||
<link rel="author" title="Esrille Inc." href="http://www.esrille.com/"> | ||
<link rel="help" href="http://www.w3.org/TR/html5/grouping-content.html#the-ol-element"> | ||
<meta name="assert" content="This test checks that the start IDL attribute reflects the respective content attribute of the same name."> | ||
<link rel="stylesheet" href="/resources/testharness.css"> | ||
<script src="/resources/testharness.js"></script> | ||
<script src="/resources/testharnessreport.js"></script> | ||
</head> | ||
<body> | ||
<ol id='ol' reversed> | ||
<li>Three</li> | ||
<li>Two</li> | ||
<li>One</li> | ||
</ol> | ||
<div id='log'></div> | ||
<script> | ||
test(function() { | ||
assert_equals(document.getElementById('ol').start, 3); | ||
}) | ||
</script> | ||
</body> | ||
</html> |