Skip to content

Commit

Permalink
Relocate to link relationship to HTML spec (#24447)
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcos Cáceres authored Jul 15, 2020
1 parent 48340be commit a337b18
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 24 deletions.
11 changes: 0 additions & 11 deletions appmanifest/link-relationship/link-rel-manifest.html

This file was deleted.

13 changes: 0 additions & 13 deletions appmanifest/link-relationship/link-tree-order-manual.html

This file was deleted.

16 changes: 16 additions & 0 deletions html/links/manifest/link-relationship/link-rel-manifest.html
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 html/links/manifest/link-relationship/link-tree-order-manual.html
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.

Copy link
@jaquettac86

jaquettac86 Oct 17, 2020

: 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

<p>
If when installing the name is "pass" then the test has passed.
</p>

0 comments on commit a337b18

Please sign in to comment.