From 355e0b058710438e440e573bff762512772ab205 Mon Sep 17 00:00:00 2001 From: Victor Berchet Date: Wed, 6 Jun 2018 13:38:11 -0700 Subject: [PATCH] Revert "test(ivy): update test that is flaky in IE (#23899)" This reverts commit 51e9e64c5acd0ce024873ffa5a71fd0ca6db8232. --- packages/core/test/render3/instructions_spec.ts | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/packages/core/test/render3/instructions_spec.ts b/packages/core/test/render3/instructions_spec.ts index 35ed8b3d5c..9aeade3a2f 100644 --- a/packages/core/test/render3/instructions_spec.ts +++ b/packages/core/test/render3/instructions_spec.ts @@ -497,6 +497,10 @@ describe('instructions', () => { 'title', 'abc', + // style="background: #dead11" + 'style', + 'background: #dead11', + // NS1:whatever="wee" AttributeMarker.NAMESPACE_URI, 'http://www.example.com/2014/test', @@ -512,16 +516,19 @@ describe('instructions', () => { }); const standardHTML = - '
'; + '
'; + const ieHTML = + '
'; - expect(t.html).toEqual(standardHTML); + expect([standardHTML, ieHTML]).toContain(t.html); const div = t.hostElement.querySelector('#container'); - expect(div !.attributes.length).toBe(4); + expect(div !.attributes.length).toBe(5); const expectedAttributes: {[key: string]: string} = { 'id': 'container', 'http://www.example.com/2014/test:title': 'abc', + 'style': 'background: #dead11', 'http://www.example.com/2014/test:whatever': 'wee', 'http://www.whatever.com/2016/blah:shazbot': 'wocka wocka', };