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
fec4cca
commit 456a5b9
Showing
9 changed files
with
92 additions
and
821 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.
61 changes: 0 additions & 61 deletions
61
spec-main/fixtures/apps/background-color-transparent/main.js
This file was deleted.
Oops, something went wrong.
4 changes: 0 additions & 4 deletions
4
spec-main/fixtures/apps/background-color-transparent/package.json
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: red; | ||
} | ||
</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
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.