addons-server/templates/qunit.html

311 строки
14 KiB
HTML

<!DOCTYPE html>
<html>
<head>
<title>QUnit Test Suite</title>
<link rel="stylesheet" href="{{ url('qunit_css') }}?v={{ timestamp }}" 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-paypal-url="/paypal"
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="addon-compatibility-template">
<div class="addon-validator-suite" id="addon-validator-suite-test"
data-validateurl="/validate">
{% with app_trans={'{ec8030f7-c20a-464f-9b0e-13a3a9e97384}': 'Firefox'},
version_change_links={'{ec8030f7-c20a-464f-9b0e-13a3a9e97384} 6.*': '/firefox-6-changes'},
target_version={'{ec8030f7-c20a-464f-9b0e-13a3a9e97384}': '6.*'} %}
{% include "devhub/addons/includes/validation_compat_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>
<div id="preview-list">
<div id="edit-addon-media">
<div id="file-list">
<div class="preview">
<span class="handle" style="display: none;">&nbsp;</span>
<div class="preview-thumb" data-url="" 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>
</div>
</div>
</div>
<div id="addon-platform-chooser">
<!-- TODO(Kumar) create faux form objects and include add_file_modal.html here -->
<form method="post" id="create-addon" class="item" action="">
<div class="platform">
<div class="desktop-platforms">
<label>Which desktop platforms is this file compatible with?</label>
<ul>
<li><label for="id_desktop_platforms_0">
<input value="1" checked="checked" name="desktop_platforms" id="id_desktop_platforms_0" type="checkbox" class="platform">
All Platforms</label></li>
<li><label for="id_desktop_platforms_1">
<input value="2" id="id_desktop_platforms_1" type="checkbox" class="platform" name="desktop_platforms">
Linux</label></li>
<li><label for="id_desktop_platforms_2">
<input value="3" type="checkbox" id="id_desktop_platforms_2" name="desktop_platforms" class="platform">
Mac OS X</label></li>
<li><label for="id_desktop_platforms_3">
<input value="5" class="platform" type="checkbox" id="id_desktop_platforms_3" name="desktop_platforms">
Windows</label> </li>
</ul>
</div>
<div class="mobile-platforms">
<label>Which mobile platforms is this file compatible with?</label>
<ul>
<li><label for="id_mobile_platforms_0">
<input value="9" type="checkbox" class="platform" name="mobile_platforms" id="id_mobile_platforms_0" />
All Platforms</label></li>
<li><label for="id_mobile_platforms_1">
<input value="7" id="id_mobile_platforms_1" type="checkbox" class="platform" name="mobile_platforms" />
Android</label></li>
<li><label for="id_mobile_platforms_2">
<input value="8" type="checkbox" id="id_mobile_platforms_2" name="mobile_platforms" class="platform" />
Maemo</label></li>
</ul>
</div>
</div>
</form>
</div>
<div id="addon-platform-exclusion">
<!-- TODO(Kumar) create faux form objects and include add_file_modal.html here -->
<div id="file-upload-template">
<form>
<!-- for testing this has to be a non-input element, since
you can't access ".file" on an input element -->
<div data-upload-url="/" id="upload-file-input"></div>
</form>
</div>
<div class="platform">
<div class="desktop-platforms">
<label>Which desktop platforms is this file compatible with?</label>
<ul>
<li><label for="id_desktop_platforms_0">
<input value="1" checked="checked" name="desktop_platforms" id="id_desktop_platforms_0" type="checkbox" class="platform">
All Platforms</label></li>
<li><label for="id_desktop_platforms_1">
<input value="2" id="id_desktop_platforms_1" type="checkbox" class="platform" name="desktop_platforms">
Linux</label></li>
<li><label for="id_desktop_platforms_2">
<input value="3" type="checkbox" id="id_desktop_platforms_2" name="desktop_platforms" class="platform">
Mac OS X</label></li>
<li><label for="id_desktop_platforms_3">
<input value="5" class="platform" type="checkbox" id="id_desktop_platforms_3" name="desktop_platforms">
Windows</label> </li>
</ul>
</div>
<div class="mobile-platforms">
<label>Which mobile platforms is this file compatible with?</label>
<ul>
<li><label for="id_mobile_platforms_0">
<input value="9" type="checkbox" class="platform" name="mobile_platforms" id="id_mobile_platforms_0" />
All Platforms</label></li>
<li><label for="id_mobile_platforms_1">
<input value="7" id="id_mobile_platforms_1" type="checkbox" class="platform" name="mobile_platforms" />
Android</label></li>
<li><label for="id_mobile_platforms_2">
<input value="8" type="checkbox" id="id_mobile_platforms_2" name="mobile_platforms" class="platform" />
Maemo</label></li>
</ul>
</div>
</div>
</div>
<div id="exists">
<span class="exists"></span>
</div>
<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>
<div id="editors-motd-template">
{% with motd='This is an announcement' %}
{% include "editors/includes/daily-message.html" %}
{% endwith %}
</div>
<div id="editors-motd-for-edit-template">
{% with motd='This is an announcement' %}
{% include "editors/includes/daily-message.html" %}
{% endwith %}
<div id="editor-motd"><!-- admin edit form and stuff --></div>
</div>
<div id="csrf-template">
<input id="csrfmiddlewaretoken" value="<csrf-from-input>">
</div>
<div id="buttons">
<div class="install-shell">
<div class="install featuredaddon"
data-version-supported="false">
</div>
</div>
<div class="backup-button hidden">
<div class="install-shell">
<div class="install featuredaddon"
data-version-supported="true">
</div>
</div>
</div>
</div>
<div id="files-wrapper">
<div id="files">
<ul>
<li>
<a class="file" href="">someurl</a>
</li>
<li>
<a class="directory closed" href="">foo</a>
</li>
<ul class="js-hidden">
<li>
<a class="file" href="someurl">foo/bar.txt</a>
</li>
</ul>
</ul>
</div>
</div>
<div id="paypal">
<div class="contribute">
<a href="/paykey?src=direct" class="suggested-amount">Contribute</a>
</div>
</div>
<div id="password-strength">
<input type="password" data-min-length="8" />
</div>
<script src="{{ static(url('jsi18n')) }}"></script>
{{ js('common') }}
<script async defer src="{{ static(url('addons.buttons.js')) }}"></script>
<script type="text/javascript" src="{{ url('qunit_js') }}?v={{ timestamp }}"></script>
<script type="text/javascript" src="{{ MEDIA_URL }}js/lib/jquery.mockjax.js?v={{ timestamp }}"></script>
{% for url in suite.extra_urls %}
<script type="text/javascript" src="{{ url }}?v={{ timestamp }}"></script>
{% endfor %}
{% for url in suite.extra_media_urls %}
<script type="text/javascript" src="{{ MEDIA_URL }}{{ url }}?v={{ timestamp }}"></script>
{% endfor %}
{% for file in files %}
<script type="text/javascript" src="{{ url('qunit_test', file) }}?v={{ timestamp }}"></script>
{% endfor %}
</body>
</html>