From 9df3982991d0e7323c94c4cd91e26a7b902cfa32 Mon Sep 17 00:00:00 2001 From: Brian Kardell Date: Sat, 3 Aug 2019 14:04:22 -0400 Subject: [PATCH] run autoformat to fix lint errors, I hope --- .../clipboard-event-handlers.tentative.html | 109 +++++++++++------- .../css-inline-style-interface.tentative.html | 62 +++++----- ...-foreign-element-interfaces.tentative.html | 46 ++++---- 3 files changed, 121 insertions(+), 96 deletions(-) diff --git a/mathml/relations/html5-tree/clipboard-event-handlers.tentative.html b/mathml/relations/html5-tree/clipboard-event-handlers.tentative.html index e3262ba6a913d7..d293b1500c77dd 100644 --- a/mathml/relations/html5-tree/clipboard-event-handlers.tentative.html +++ b/mathml/relations/html5-tree/clipboard-event-handlers.tentative.html @@ -1,59 +1,84 @@ DocumentAndElementEventHandlers / clipboard events for MathML - - - - - + + + + + -
+
- E - + oncopy="document.copyHappened = true" + oncut="document.cutHappened = true" + onpaste="document.pasteHappened = true" +> + E + diff --git a/mathml/relations/html5-tree/css-inline-style-interface.tentative.html b/mathml/relations/html5-tree/css-inline-style-interface.tentative.html index 91dd3819e08938..708926413f2aff 100644 --- a/mathml/relations/html5-tree/css-inline-style-interface.tentative.html +++ b/mathml/relations/html5-tree/css-inline-style-interface.tentative.html @@ -8,48 +8,50 @@ href="https://mathml-refresh.github.io/mathml-core/#dom-and-javascript" /> - + - - This tests the presence and functionality of features of the `ElementCSSInlineStyle` interface for MathMLElements + This tests the presence and functionality of features of the + `ElementCSSInlineStyle` interface for MathMLElements + }, `The element style property should be present and be functional.`); + + Object.keys(MathMLFragments).forEach(elName => { + mathEl.innerHTML = MathMLFragments[elName]; + + test(function() { + let el = FragmentHelper.element(mathEl); + el.style.backgroundColor = "blue"; + + assert_equals( + getComputedStyle(el).backgroundColor, + "rgb(0, 0, 255)", + "The applied background should be blue." + ); + }, `The ${elName}'s style property should be present and be functional.`); + }); + - \ No newline at end of file + diff --git a/mathml/relations/html5-tree/html-or-foreign-element-interfaces.tentative.html b/mathml/relations/html5-tree/html-or-foreign-element-interfaces.tentative.html index efbc72a364ff5b..1fcaf6c40167a5 100644 --- a/mathml/relations/html5-tree/html-or-foreign-element-interfaces.tentative.html +++ b/mathml/relations/html5-tree/html-or-foreign-element-interfaces.tentative.html @@ -8,29 +8,35 @@ href="https://mathml-refresh.github.io/mathml-core/#dom-and-javascript" /> - + - - This tests the presence and functionality of features of `HTMLOrForeignElement` (currently `HTMLOrSVGElement`) - + This tests the presence and functionality of features of + `HTMLOrForeignElement` (currently `HTMLOrSVGElement`) + E - \ No newline at end of file +