mirror of https://github.com/sveltejs/svelte
commit
8e5125e0bd
@ -1,21 +0,0 @@
|
||||
export default {
|
||||
test ( assert, component, target, window ) {
|
||||
const iframe = window.document.createElement('iframe');
|
||||
window.document.body.appendChild(iframe);
|
||||
|
||||
const otherTarget = iframe.contentWindow.document.body;
|
||||
|
||||
new component.constructor({
|
||||
target: otherTarget
|
||||
});
|
||||
|
||||
assert.equal(
|
||||
window.getComputedStyle(target.querySelector('h1')).color,
|
||||
'rgb(255, 0, 0)'
|
||||
);
|
||||
assert.equal(
|
||||
window.getComputedStyle(otherTarget.querySelector('h1')).color,
|
||||
'rgb(255, 0, 0)'
|
||||
);
|
||||
}
|
||||
};
|
@ -1,6 +0,0 @@
|
||||
<h1>Just some static HTML</h1>
|
||||
<style>
|
||||
h1 {
|
||||
color: rgb(255, 0, 0);
|
||||
}
|
||||
</style>
|
Loading…
Reference in new issue