summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-toggle/idlharness.tentative.html
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 19:33:14 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 19:33:14 +0000
commit36d22d82aa202bb199967e9512281e9a53db42c9 (patch)
tree105e8c98ddea1c1e4784a60a5a6410fa416be2de /testing/web-platform/tests/css/css-toggle/idlharness.tentative.html
parentInitial commit. (diff)
downloadfirefox-esr-36d22d82aa202bb199967e9512281e9a53db42c9.tar.xz
firefox-esr-36d22d82aa202bb199967e9512281e9a53db42c9.zip
Adding upstream version 115.7.0esr.upstream/115.7.0esr
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'testing/web-platform/tests/css/css-toggle/idlharness.tentative.html')
-rw-r--r--testing/web-platform/tests/css/css-toggle/idlharness.tentative.html32
1 files changed, 32 insertions, 0 deletions
diff --git a/testing/web-platform/tests/css/css-toggle/idlharness.tentative.html b/testing/web-platform/tests/css/css-toggle/idlharness.tentative.html
new file mode 100644
index 0000000000..1f0cf22e81
--- /dev/null
+++ b/testing/web-platform/tests/css/css-toggle/idlharness.tentative.html
@@ -0,0 +1,32 @@
+<!DOCTYPE HTML>
+<meta charset=UTF-8>
+<title>css-toggles IDL tests</title>
+<link rel="help" href="https://tabatkins.github.io/css-toggle/#dom">
+<link rel="help" href="https://github.com/tabatkins/css-toggle/issues/29">
+<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 src="support/toggle-helpers.js"></script>
+<div id="toggles" style="toggle-root: mytoggle 3 at 1"></div>
+<script type="module">
+'use strict';
+
+await wait_for_toggle_creation(document.getElementById("toggles"));
+
+idl_test(
+ ['css-toggle.tentative'],
+ ['dom'],
+ idl_array => {
+ idl_array.add_objects({
+ CSSToggleMap: ['document.getElementById("toggles").toggles'],
+ CSSToggle: [
+ 'document.getElementById("toggles").toggles.get("mytoggle")',
+ 'new CSSToggle()',
+ 'new CSSToggle({ value: 3, states: 7, group: true, scope: "narrow", cycle: "cycle-on"})',
+ 'new CSSToggle({ value: "four", states: ["one", "two", "four", "eight"], group: false, scope: "wide", cycle: "sticky"})',
+ ],
+ });
+ }
+);
+</script>