Skip to content

Commit

Permalink
test(ivy): update test that is flaky in IE (angular#23899)
Browse files Browse the repository at this point in the history
PR Close angular#23899
  • Loading branch information
benlesh authored and vicb committed Jun 6, 2018
1 parent 1915e47 commit 51e9e64
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions packages/core/test/render3/instructions_spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -497,10 +497,6 @@ describe('instructions', () => {
'title',
'abc',

// style="background: #dead11"
'style',
'background: #dead11',

// NS1:whatever="wee"
AttributeMarker.NAMESPACE_URI,
'http://www.example.com/2014/test',
Expand All @@ -516,19 +512,16 @@ describe('instructions', () => {
});

const standardHTML =
'<div id="container" title="abc" style="background: #dead11" whatever="wee" shazbot="wocka wocka"></div>';
const ieHTML =
'<div id="container" style="background: rgb(222, 173, 17);" title="abc" whatever="wee" shazbot="wocka wocka"></div>';
'<div id="container" title="abc" whatever="wee" shazbot="wocka wocka"></div>';

expect([standardHTML, ieHTML]).toContain(t.html);
expect(t.html).toEqual(standardHTML);

const div = t.hostElement.querySelector('#container');
expect(div !.attributes.length).toBe(5);
expect(div !.attributes.length).toBe(4);

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',
};
Expand Down

0 comments on commit 51e9e64

Please sign in to comment.