test(ivy): update test that is flaky in IE (#23899)

PR Close #23899
This commit is contained in:
Ben Lesh 2018-05-31 09:13:52 -07:00 committed by Victor Berchet
parent 1915e47d11
commit 51e9e64c5a

View File

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