addons-server/templates/qunit.html

79 строки
2.9 KiB
HTML

<!DOCTYPE html>
<html>
<head>
<title>QUnit Test Suite</title>
<link rel="stylesheet" href="{{ url('qunit_css') }}" type="text/css" media="screen">
</head>
<body
data-app="{{ request.APP.short }}"
data-appname="{{ request.APP.pretty }}"
data-appid="{{ request.APP.id }}"
data-anonymous="true"
data-readonly="false"
data-media-url="{{ MEDIA_URL }}">
<h1 id="qunit-header">QUnit Test Suite ({{ suite.name }})</h1>
<h2 id="qunit-banner"></h2>
<div id="qunit-testrunner-toolbar"></div>
{% if in_directory or subsuites %}
<div id="navigation">
{% if in_subdirectory %}
<a href="{{ url('qunit_test_overview', previous_directory) }}">..</a>
{% endif %}
{% for suite in subsuites %}
<a href="{{ suite }}/">{{ suite }}</a>
{% endfor %}
</div>
{% endif %}
<h2 id="qunit-userAgent"></h2>
<ol id="qunit-tests"></ol>
<div id="qunit-fixture">test markup, will be hidden</div>
<div id="sandbox"><!-- custom Zamboni sandbox area --></div>
{# The following HTML can be applied to #qunit-fixture in test setup #}
<div id="addon-validator-template">
<div class="addon-validator-suite" id="addon-validator-suite-test"
data-validateurl="/validate">
{% with validate_url="/validate" %}
{% include "devhub/addons/includes/validation_test_results.html" %}
{% endwith %}
</div>
</div>
<div id="l10n-translation">
<div data-name="summary" class="trans" id="trans-summary">
<textarea lang="en-us" name="summary_en-us" cols="40" rows="10"
id="id_summary_0" style="display: block;">
Firebug integrates with Firefox to put a wealth of development tools...
</textarea>
<textarea lang="ja" name="summary_ja" cols="40" rows="10" id="id_summary_1"
style="display: none;">
Firebug は、Web ページを閲覧中にクリック一つで使える豊富な開発ツールを Firefox に統合します。あなたはあらゆる
</textarea>
</div>
</div>
<div id="l10n-menu">
<ul>
<li><a href="#en-us" class="default-locale">English (US)</a></li>
<li><a href="#ja">日本語</a></li>
<li><a href="#id">Bahasa Indonesia</a></li>
</ul>
</div>
<script src="{{ url('jsi18n') }}/build:{{ BUILD_ID_JS }}"></script>
{{ js('common') }}
<script async defer src="{{ url('addons.buttons.js') }}/build:{{ BUILD_ID_JS }}"></script>
<script type="text/javascript" src="{{ url('qunit_js') }}"></script>
<script type="text/javascript" src="{{ MEDIA_URL }}js/zamboni/jquery.mockjax.js"></script>
{% for url in suite.extra_urls %}
<script type="text/javascript" src="{{ url }}"></script>
{% endfor %}
{% for url in suite.extra_media_urls %}
<script type="text/javascript" src="{{ MEDIA_URL }}{{ url }}"></script>
{% endfor %}
{% for file in files %}
<script type="text/javascript" src="{{ url('qunit_test', file) }}"></script>
{% endfor %}
</body>
</html>