Revert "test(ivy): update test that is flaky in IE (#23899)"
This reverts commit 51e9e64c5a
.
This commit is contained in:
parent
d96ae123b2
commit
355e0b0587
|
@ -497,6 +497,10 @@ describe('instructions', () => {
|
||||||
'title',
|
'title',
|
||||||
'abc',
|
'abc',
|
||||||
|
|
||||||
|
// style="background: #dead11"
|
||||||
|
'style',
|
||||||
|
'background: #dead11',
|
||||||
|
|
||||||
// NS1:whatever="wee"
|
// NS1:whatever="wee"
|
||||||
AttributeMarker.NAMESPACE_URI,
|
AttributeMarker.NAMESPACE_URI,
|
||||||
'http://www.example.com/2014/test',
|
'http://www.example.com/2014/test',
|
||||||
|
@ -512,16 +516,19 @@ describe('instructions', () => {
|
||||||
});
|
});
|
||||||
|
|
||||||
const standardHTML =
|
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');
|
const div = t.hostElement.querySelector('#container');
|
||||||
expect(div !.attributes.length).toBe(4);
|
expect(div !.attributes.length).toBe(5);
|
||||||
|
|
||||||
const expectedAttributes: {[key: string]: string} = {
|
const expectedAttributes: {[key: string]: string} = {
|
||||||
'id': 'container',
|
'id': 'container',
|
||||||
'http://www.example.com/2014/test:title': 'abc',
|
'http://www.example.com/2014/test:title': 'abc',
|
||||||
|
'style': 'background: #dead11',
|
||||||
'http://www.example.com/2014/test:whatever': 'wee',
|
'http://www.example.com/2014/test:whatever': 'wee',
|
||||||
'http://www.whatever.com/2016/blah:shazbot': 'wocka wocka',
|
'http://www.whatever.com/2016/blah:shazbot': 'wocka wocka',
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue