re-add qunit bootstrap conditional
Dieser Commit ist enthalten in:
Ursprung
576d96b2ba
Commit
3abb65294c
1 geänderte Dateien mit 20 neuen und 18 gelöschten Zeilen
|
@ -1,7 +1,8 @@
|
|||
// discourse-skip-module
|
||||
/*global document, Logster, QUnit */
|
||||
|
||||
document.addEventListener("DOMContentLoaded", function () {
|
||||
if (window.location.pathname.indexOf("/w/") > -1 && Ember.testing) {
|
||||
document.addEventListener("DOMContentLoaded", function () {
|
||||
document.body.insertAdjacentHTML(
|
||||
"afterbegin",
|
||||
`
|
||||
|
@ -9,16 +10,17 @@ document.addEventListener("DOMContentLoaded", function () {
|
|||
<style>#ember-testing-container { position: absolute; background: white; bottom: 0; right: 0; width: 640px; height: 384px; overflow: auto; z-index: 9999; border: 1px solid #ccc; } #ember-testing { zoom: 50%; }</style>
|
||||
`
|
||||
);
|
||||
});
|
||||
});
|
||||
|
||||
Object.keys(requirejs.entries).forEach(function (entry) {
|
||||
Object.keys(requirejs.entries).forEach(function (entry) {
|
||||
if (/\-test/.test(entry)) {
|
||||
requirejs(entry);
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
if (window.Logster) {
|
||||
if (window.Logster) {
|
||||
Logster.enabled = false;
|
||||
} else {
|
||||
} else {
|
||||
window.Logster = { enabled: false };
|
||||
}
|
||||
}
|
||||
|
|
Laden …
In neuem Issue referenzieren