-
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.
Add idlharness test for interesttarget [6/N]
There was previously an `interest-invokers.tentative.idl` but no test file to run it. This adds the idlharness.html tester, and updates the .idl file to match the current implementation. Bug: 326681249 Change-Id: I467b389b00f969fa78fa51d47df5c9f2ef23dfd4 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6197038 Reviewed-by: David Baron <[email protected]> Commit-Queue: David Baron <[email protected]> Auto-Submit: Mason Freed <[email protected]> Cr-Commit-Position: refs/heads/main@{#1410899}
- Loading branch information
1 parent
598dbb9
commit aa00e88
Showing
2 changed files
with
34 additions
and
2 deletions.
There are no files selected for viewing
21 changes: 21 additions & 0 deletions
21
html/semantics/the-button-element/interest-target/idlharness.tentative.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,21 @@ | ||
<!DOCTYPE html> | ||
<meta charset="utf-8" /> | ||
<link rel="author" href="mailto:[email protected]" /> | ||
<link rel="help" href="https://open-ui.org/components/interest-invokers.explainer/" /> | ||
<script src="/resources/testharness.js"></script> | ||
<script src="/resources/testharnessreport.js"></script> | ||
<script src="/resources/WebIDLParser.js"></script> | ||
<script src="/resources/idlharness.js"></script> | ||
|
||
<script> | ||
idl_test(["interest-invokers.tentative"], | ||
["html","dom","SVG"], (idl_array) => { | ||
idl_array.add_objects({ | ||
HTMLAnchorElement: ['document.createElement("a")'], | ||
HTMLAreaElement: ['document.createElement("area")'], | ||
HTMLButtonElement: ['document.createElement("button")'], | ||
SVGAElement: ['document.createElementNS("http://www.w3.org/2000/svg", "a")'], | ||
InterestEvent: ['new InterestEvent("interest")'] | ||
}); | ||
}); | ||
</script> |
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