-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Relocate to link relationship to HTML spec (#24447)
- Loading branch information
Marcos Cáceres
authored
Jul 15, 2020
1 parent
48340be
commit a337b18
Showing
4 changed files
with
29 additions
and
24 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
16 changes: 16 additions & 0 deletions
16
html/links/manifest/link-relationship/link-rel-manifest.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,16 @@ | ||
<!DOCTYPE html> | ||
<title> | ||
Test that "manifest" is a supported value for the `rel` of a `link` | ||
</title> | ||
<link rel="help" href="https://html.spec.whatwg.org/#link-type-manifest" /> | ||
<script src="/resources/testharness.js"></script> | ||
<script src="/resources/testharnessreport.js"></script> | ||
<script> | ||
test(() => { | ||
const result = document.createElement("link").relList.supports("manifest"); | ||
assert_true( | ||
result, | ||
"Expected true if manifest is supported as a link relationship" | ||
); | ||
}, 'link element supports a rel value of "manifest".'); | ||
</script> |
13 changes: 13 additions & 0 deletions
13
html/links/manifest/link-relationship/link-tree-order-manual.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,13 @@ | ||
<!DOCTYPE html> | ||
<title>Test that name member is supported</title> | ||
<link rel="help" href="https://html.spec.whatwg.org/#link-type-manifest" /> | ||
<link rel="manifesto" href="/appmanifest/name-member/name-member-fail.webmanifest" /> | ||
<link | ||
rel="hello manifest another-relationship" | ||
href="/appmanifest/name-member/name-member.webmanifest" | ||
/> | ||
<link rel="manifest" href="/appmanifest/name-member/name-member-fail.webmanifest" /> | ||
<link rel="hello manifest" href="/appmanifest/name-member/name-member-fail.webmanifest" /> | ||
This comment has been minimized.
Sorry, something went wrong. |
||
<p> | ||
If when installing the name is "pass" then the test has passed. | ||
</p> |
: sipush 1000
7: invokestatic #21; //Method postIncrement:(I)V
10: sipush 1000
13: invokestatic #25; //Method preIncrement:(I)V
16: return
private static void postIncrement(int);
Code:
0: iconst_0
1: istore_1
2: goto 16
5: getstatic #10; //Field somethingToIncrement:I
8: iconst_1
9: iadd
10: putstatic #10; //Field somethingToIncrement:I
13: iinc 1, 1
16: iload_1
17: iload_0
18: if_icmplt 5
21: return
private static void preIncrement(int);
Code:
0: iconst_0
1: istore_1
2: goto 16
5: getstatic #10; //Field somethingToIncrement:I
8: iconst_1
9: iadd
10: putstatic #10; //Field somethingToIncrement:I
13: iinc 1, 1
16: iload_1
17: iload_0
18: if_icmplt 5
21: return
}
share