addons-server/templates/qunit.html

213 строки
9.4 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-min-beta-version="{{ settings.MIN_BETA_VERSION }}"
data-anonymous="true"
data-readonly="false"
data-media-url="{{ MEDIA_URL }}"
data-default-locale="en-us">
<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>
2011-01-06 02:29:35 +03:00
<div id="preview-list">
<div id="edit-addon-media">
2011-01-19 07:55:14 +03:00
<div id="file-list">
<div class="preview">
<span class="handle" style="display: none;">&nbsp;</span>
<div class="preview-thumb" style="background-image: url();">
</div>
<input type="hidden" id="id_files-0-id" name="files-0-id">
<span class="js-hidden delete"><input type="checkbox" id="id_files-0-DELETE" name="files-0-DELETE"><label for="id_files-0-DELETE">Delete</label></span>
<div class="edit-previews-text">
<label class="above-the-field" data-for="files-0-caption" for="id_files-0-caption_0">
Please provide a caption for this screenshot:
<span class="locale">
English (US)
</span></label>
<div data-name="files-0-caption" class="trans" id="trans-files-0-caption"><textarea lang="en-us" id="id_files-0-caption_0" cols="40" name="files-0-caption_en-us" rows="10" class="unsaved"></textarea><textarea lang="init" class="trans-init" cols="40" name="files-0-caption_init" rows="10" style="display: none;"></textarea></div>
<a class="remove" href="#">x</a>
</div>
<div class="js-hidden position">
<input type="text" id="id_files-0-position" value="0" name="files-0-position">
</div>
<div class="preview_extra">
<input type="text" id="id_files-0-upload_hash" name="files-0-upload_hash">
</div>
</p>
</div>
2011-01-06 02:29:35 +03:00
</div>
</div>
</div>
<div id="addon-upload-template">
<div class="upload-status hidden">
<strong id="upload-status-text"></strong>
<div id="upload-status-bar">
<div></div>
</div>
<div id="upload-status-results"></div>
</div>
</div>
<div id="file-upload-template">
<span data-upload-url="/server-upload" class="invisible-upload cta">
<a href="#" class="button prominent">Select Add-on to Upload...</a>
<input type="file" id="upload-file-input">
</span>
</div>
<div id="addon-platform-chooser">
<form method="post" id="create-addon" class="item" action="">
<ul>
<li><label for="id_platforms_0">
<input checked="checked" name="platforms" value="1" id="id_platforms_0" type="checkbox" class="platform" />
All Platforms</label></li>
<li><label for="id_platforms_1">
<input id="id_platforms_1" type="checkbox" class="platform" value="2" name="platforms" />
Linux</label></li>
<li><label for="id_platforms_2">
<input value="3" type="checkbox" id="id_platforms_2" name="platforms" class="platform" />
Mac OS X</label></li>
<li><label for="id_platforms_3">
<input class="platform" type="checkbox" id="id_platforms_3" value="5" name="platforms" />
Windows</label></li>
</ul>
</form>
</div>
<div id="addon-platform-switching">
<div class="platform">
<ul>
<li><label for="id_platforms_0">
<input checked="checked" name="platforms" value="100" id="id_platforms_0" type="checkbox" class="platform" />
All Platforms</label></li>
<li><label for="id_platforms_1">
<input name="platforms" value="101" id="id_platforms_1" type="checkbox" class="platform" />
Linux</label></li>
<li><label for="id_platforms_2">
<input name="platforms" value="102" id="id_platforms_2" type="checkbox" class="platform" />
Mac OS X</label></li>
<li><label for="id_platforms_3">
<input name="platforms" value="103" id="id_platforms_3" type="checkbox" class="platform" />
Windows</label></li>
</ul>
</div>
</div>
2011-01-06 04:02:38 +03:00
<div id="slugified-field">
<input id="id_name" />
<span id="slug_edit" class="edit_with_prefix edit_initially_hidden">
<input type="text" maxlength="30" name="slug" id="id_slug">
</span>
<span id="slug_readonly">
<span id="slug_value"></span>
<a id="edit_slug" href="#">{{ _('Edit') }}</a>
</span>
</div>
<div id="addon-cats" data-max-categories="2">
<div data-max-categories="2">
<div id="addon-cats-fx" class="select-addon-cats">
<label>Select <b>up to 2</b> Firefox categories for this add-on:</label>
<ul class="addon-categories">
<li><label for="id_form-0-categories_0"><input type="checkbox" name="form-0-categories" value="72" id="id_form-0-categories_0" /> Alerts &amp; Updates</label></li>
<li><label for="id_form-0-categories_1"><input checked="checked" type="checkbox" name="form-0-categories" value="14" id="id_form-0-categories_1" /> Appearance</label></li>
<li><label for="id_form-0-categories_2"><input checked="checked" type="checkbox" name="form-0-categories" value="22" id="id_form-0-categories_2" /> Bookmarks</label></li>
</ul>
<ul class="addon-misc-category">
<li><label for="id_form-0-categories_13"><input type="checkbox" name="form-0-categories" value="73" id="id_form-0-categories_13" /> My add-on doesn&#39;t fit into any of the categories</label></li>
</ul>
</div>
<div id="addon-cats-tb" class="select-addon-cats">
<label>Select <b>up to 2</b> Thunderbird categories for this add-on:</label>
<ul class="addon-categories">
<li><label for="id_form-1-categories_0"><input type="checkbox" name="form-1-categories" value="23" id="id_form-1-categories_0" /> Contacts</label></li>
<li><label for="id_form-1-categories_1"><input type="checkbox" name="form-1-categories" value="69" id="id_form-1-categories_1" /> Language Support</label></li>
</ul>
<ul class="addon-misc-category">
<li><label for="id_form-1-categories_4"><input type="checkbox" name="form-1-categories" value="50" id="id_form-1-categories_4" /> My add-on doesn&#39;t fit into any of the categories</label></li>
</ul>
</div>
</div>
</div>
<div id="editors-search-form">
<form>
<label for="id_application_id">Application</label>
<select data-url="/application_versions.json" name="application_id" id="id_application_id">
<option value="" selected="selected"></option>
<option value="1">Firefox</option>
<option value="2">Mozilla</option>
</select>
<label for="id_max_version">Max. Version</label>
<select name="max_version" id="id_max_version">
<option value="" selected="selected">Select an application first</option>
</select>
</form>
</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>