From e1561f65eccb69825805eb6d59966ab2037ae9df Mon Sep 17 00:00:00 2001 From: Daniel Freedman Date: Thu, 2 Feb 2017 14:10:41 -0800 Subject: [PATCH] Add tests for `is-inert` Fix global variable leakage around checking inertness setting --- src/lib/annotations/annotations.html | 3 + test/runner.html | 3 +- test/unit/element-inertness.html | 152 +++++++++++++++++++++++++++ 3 files changed, 157 insertions(+), 1 deletion(-) create mode 100644 test/unit/element-inertness.html diff --git a/src/lib/annotations/annotations.html b/src/lib/annotations/annotations.html index d9b11b9291..bcd6879316 100644 --- a/src/lib/annotations/annotations.html +++ b/src/lib/annotations/annotations.html @@ -10,6 +10,7 @@ diff --git a/test/runner.html b/test/runner.html index 69366eacad..0cb45953d9 100644 --- a/test/runner.html +++ b/test/runner.html @@ -92,7 +92,8 @@ 'unit/dom-bind-yield.html', 'unit/script-after-import-in-head.html', 'unit/globals.html', - 'unit/lazy-register.html' + 'unit/lazy-register.html', + 'unit/element-inertness.html' ]; if (document.body.createShadowRoot) { diff --git a/test/unit/element-inertness.html b/test/unit/element-inertness.html new file mode 100644 index 0000000000..882bdb3614 --- /dev/null +++ b/test/unit/element-inertness.html @@ -0,0 +1,152 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file