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

This reverts commit 51e9e64c5a.
This commit is contained in:
Victor Berchet 2018-06-06 13:38:11 -07:00
parent d96ae123b2
commit 355e0b0587
1 changed files with 10 additions and 3 deletions

View File

@ -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 =
'<div id="container" title="abc" whatever="wee" shazbot="wocka wocka"></div>';
'<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>';
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',
};