Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: remove redundant color diffing dependency
- Loading branch information
1 parent
9e0a3c4
commit 625e753
Showing
6 changed files
with
71 additions
and
729 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 0 additions & 15 deletions
15
spec-main/fixtures/apps/background-color-transparent/index.html
This file was deleted.
Oops, something went wrong.
9 changes: 0 additions & 9 deletions
9
spec-main/fixtures/apps/background-color-transparent/renderer.js
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<title>test-color-window</title> | ||
<style> | ||
body { | ||
background: green; | ||
} | ||
</style> | ||
</head> | ||
<body id="body"> | ||
<script> | ||
const { ipcRenderer } = require('electron'); | ||
|
||
const observer = new MutationObserver((mutationList, observer) => { | ||
mutationList.forEach(({ type, attributeName }) => { | ||
if (type === 'attributes' && attributeName === 'style') { | ||
ipcRenderer.send('set-transparent'); | ||
} | ||
}); | ||
}); | ||
|
||
observer.observe(document.body, { attributes: true }); | ||
|
||
document.addEventListener('DOMContentLoaded', event => { | ||
document.body.style.background = 'transparent'; | ||
}); | ||
</script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.