parent
1915e47d11
commit
51e9e64c5a
@ -497,10 +497,6 @@ 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',
|
||||||
@ -516,19 +512,16 @@ describe('instructions', () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
const standardHTML =
|
const standardHTML =
|
||||||
'<div id="container" title="abc" style="background: #dead11" whatever="wee" shazbot="wocka wocka"></div>';
|
'<div id="container" title="abc" 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([standardHTML, ieHTML]).toContain(t.html);
|
expect(t.html).toEqual(standardHTML);
|
||||||
|
|
||||||
const div = t.hostElement.querySelector('#container');
|
const div = t.hostElement.querySelector('#container');
|
||||||
expect(div !.attributes.length).toBe(5);
|
expect(div !.attributes.length).toBe(4);
|
||||||
|
|
||||||
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…
x
Reference in New Issue
Block a user