зеркало из https://github.com/mozilla/gecko-dev.git
Bug 823120 - Fix templates. r=jmaher
Having <script> tags after the content, rather than before, encourages people to do <iframe onload="go()"> before go is guaranteed to be defined.
This commit is contained in:
Родитель
a382d6628d
Коммит
d7c79fb1aa
|
@ -8,23 +8,23 @@ https://bugzilla.mozilla.org/show_bug.cgi?id={BUGNUMBER}
|
|||
<title>Test for Bug {BUGNUMBER}</title>
|
||||
<script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
|
||||
<link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
|
||||
<script type="application/javascript">
|
||||
|
||||
/** Test for Bug {BUGNUMBER} **/
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id={BUGNUMBER}">Mozilla Bug {BUGNUMBER}</a>
|
||||
<p id="display"></p>
|
||||
<div id="content" style="display: none">
|
||||
|
||||
|
||||
</div>
|
||||
<pre id="test">
|
||||
<script type="application/javascript">
|
||||
|
||||
/** Test for Bug {BUGNUMBER} **/
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</script>
|
||||
</pre>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -6,24 +6,24 @@ https://bugzilla.mozilla.org/show_bug.cgi?id={BUGNUMBER}
|
|||
<title>Test for Bug {BUGNUMBER}</title>
|
||||
<script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
|
||||
<link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
|
||||
<script type="application/javascript">
|
||||
<![CDATA[
|
||||
|
||||
/** Test for Bug {BUGNUMBER} **/
|
||||
|
||||
|
||||
|
||||
|
||||
]]>
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id={BUGNUMBER}">Mozilla Bug {BUGNUMBER}</a>
|
||||
<p id="display"></p>
|
||||
<div id="content" style="display: none">
|
||||
|
||||
|
||||
</div>
|
||||
<pre id="test">
|
||||
<script type="application/javascript">
|
||||
<![CDATA[
|
||||
|
||||
/** Test for Bug {BUGNUMBER} **/
|
||||
|
||||
|
||||
|
||||
|
||||
]]>
|
||||
</script>
|
||||
</pre>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -8,12 +8,6 @@ https://bugzilla.mozilla.org/show_bug.cgi?id={BUGNUMBER}
|
|||
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
|
||||
<script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"/>
|
||||
|
||||
<!-- test results are displayed in the html:body -->
|
||||
<body xmlns="http://www.w3.org/1999/xhtml">
|
||||
<a href="https://bugzilla.mozilla.org/show_bug.cgi?id={BUGNUMBER}"
|
||||
target="_blank">Mozilla Bug {BUGNUMBER}</a>
|
||||
</body>
|
||||
|
||||
<!-- test code goes here -->
|
||||
<script type="application/javascript">
|
||||
<![CDATA[
|
||||
|
@ -24,4 +18,10 @@ https://bugzilla.mozilla.org/show_bug.cgi?id={BUGNUMBER}
|
|||
|
||||
]]>
|
||||
</script>
|
||||
|
||||
<!-- test results are displayed in the html:body -->
|
||||
<body xmlns="http://www.w3.org/1999/xhtml">
|
||||
<a href="https://bugzilla.mozilla.org/show_bug.cgi?id={BUGNUMBER}"
|
||||
target="_blank">Mozilla Bug {BUGNUMBER}</a>
|
||||
</body>
|
||||
</window>
|
||||
|
|
Загрузка…
Ссылка в новой задаче