From de71df87ced3f2ff8738312bb593b15d5052eb4e Mon Sep 17 00:00:00 2001 From: Matthew Beale Date: Sun, 7 Feb 2016 15:49:22 -0500 Subject: [PATCH] Disable failing tests in PhantomJS 1.9 --- .../glimmer-runtime/tests/updating-test.ts | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/packages/node_modules/glimmer-runtime/tests/updating-test.ts b/packages/node_modules/glimmer-runtime/tests/updating-test.ts index f43982c299..25d55b2376 100644 --- a/packages/node_modules/glimmer-runtime/tests/updating-test.ts +++ b/packages/node_modules/glimmer-runtime/tests/updating-test.ts @@ -2,6 +2,18 @@ import { Template, RenderResult } from "glimmer-runtime"; import { TestEnvironment, equalTokens, stripTight } from "glimmer-test-helpers"; import { UpdatableReference } from "glimmer-reference"; +/* + * IE9 does not serialize namespaced attributes correctly. The namespace + * prefix is incorrectly stripped off. + */ +const serializesNSAttributesCorrectly = (function() { + let div = document.createElement('div'); + let span = document.createElement('span'); + span.setAttributeNS('http://www.w3.org/XML/1998/namespace', 'xml:lang', 'en-uk'); + div.appendChild(span); + return div.innerHTML === ''; +})(); + let hooks, root: Element; let env: TestEnvironment; let self: UpdatableReference; @@ -425,6 +437,7 @@ test("attribute nodes w/ concat follow the normal dirtying rules", function() { equalTokens(root, "
hello
"); }); +if (serializesNSAttributesCorrectly) { test("namespaced attribute nodes follow the normal dirtying rules", function() { let template = compile("
hello
"); let object = { lang: "en-us" }; @@ -460,6 +473,7 @@ test("namespaced attribute nodes w/ concat follow the normal dirtying rules", fu equalTokens(root, "
hello
", "Revalidating after dirtying"); }); +} test("non-standard namespaced attribute nodes follow the normal dirtying rules", function() { let template = compile("
hello
");