From f6c041e9f61217fdf5f4f15ea307569d59fbc21f Mon Sep 17 00:00:00 2001 From: jkodu Date: Mon, 18 Mar 2019 11:04:24 +0000 Subject: [PATCH 1/2] test: createHTMLDocument needs mandatory title when invoked in IE --- test/checks/mobile/css-orientation-lock.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/checks/mobile/css-orientation-lock.js b/test/checks/mobile/css-orientation-lock.js index 2a5a1e2842..ef6078d5fa 100644 --- a/test/checks/mobile/css-orientation-lock.js +++ b/test/checks/mobile/css-orientation-lock.js @@ -3,7 +3,7 @@ describe('css-orientation-lock tests', function() { var checkContext = axe.testUtils.MockCheckContext(); var origCheck = checks['css-orientation-lock']; - var dynamicDoc = document.implementation.createHTMLDocument(); + var dynamicDoc = document.implementation.createHTMLDocument('ie is dumb'); afterEach(function() { checks['css-orientation-lock'] = origCheck; From 08e4447d636e98fe2e7424ec856bc1b56ccaec94 Mon Sep 17 00:00:00 2001 From: jkodu Date: Mon, 18 Mar 2019 14:29:03 +0000 Subject: [PATCH 2/2] test: change title --- test/checks/mobile/css-orientation-lock.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/checks/mobile/css-orientation-lock.js b/test/checks/mobile/css-orientation-lock.js index ef6078d5fa..747e5b939d 100644 --- a/test/checks/mobile/css-orientation-lock.js +++ b/test/checks/mobile/css-orientation-lock.js @@ -3,7 +3,9 @@ describe('css-orientation-lock tests', function() { var checkContext = axe.testUtils.MockCheckContext(); var origCheck = checks['css-orientation-lock']; - var dynamicDoc = document.implementation.createHTMLDocument('ie is dumb'); + var dynamicDoc = document.implementation.createHTMLDocument( + 'Dynamic document for CSS Orientation Lock tests' + ); afterEach(function() { checks['css-orientation-lock'] = origCheck;