Add spec for devtools extension

This commit is contained in:
Kevin Sawicki 2016-05-17 14:52:45 -07:00
parent fb6f5320e7
commit 189380d4ea
4 changed files with 51 additions and 1 deletions

View file

@ -0,0 +1,10 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>foo</title>
<script>
chrome.devtools.panels.create('Foo', 'foo.png', 'index.html')
</script>
</head>
</html>

View file

@ -0,0 +1,14 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
<script>
var sendMessage = `require('electron').ipcRenderer.send('answer', 'extension loaded')`
window.chrome.devtools.inspectedWindow.eval(sendMessage, function () {})
</script>
</head>
<body>
a custom devtools extension
</body>
</html>

View file

@ -1,3 +1,5 @@
{
"name": "foo"
"name": "foo",
"version": "1.0",
"devtools_page": "foo.html"
}