Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(110)

Side by Side Diff: chrome/common/extensions/docs/build/generator.html

Issue 159607: Extension docs build script, gyp target and PRESUBMIT.PY check (Closed)
Patch Set: remove build step on mac Created 11 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 <html>
2 <head>
3 <script>
4 var childFrame;
5
6 function generate() {
7 if (!window.layoutTestController) {
8 alert("window.layoutTestController not defined.");
9 return;
10 }
11
12 layoutTestController.dumpAsText();
13 layoutTestController.waitUntilDone();
14
15 var page = window.location.search.substring(1);
16 if (!page) {
17 alert("please specify which page to generate via " +
18 "?<page> ... ie. generator.html?tabs");
19 }
20
21 childFrame = document.createElement('iframe');
22 childFrame.src = "../" + page + ".html?regenerate";
23 childFrame.style.display = "none";
24 document.body.appendChild(childFrame);
25 }
26
27 function done() {
28 var textNode = document.createTextNode(
29 childFrame.contentWindow.serializePage());
30 document.getElementsByTagName("body")[0].appendChild(textNode);
31
32 layoutTestController.notifyDone();
33 }
34 </script>
35 </head>
36 <body onload="generate();">
37 </body>
38 </html>
OLDNEW
« no previous file with comments | « chrome/common/extensions/docs/build/build.py ('k') | chrome/common/extensions/docs/devguide.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698