Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Steur <thomas.steur@googlemail.com>2014-09-05 15:51:02 +0400
committerThomas Steur <thomas.steur@googlemail.com>2014-09-05 15:51:02 +0400
commit1a619da19f5f8f668abb1b26f9507ba2fd035601 (patch)
tree8131adce4bbe46a04f7b37ced12d70c34b6ee52e /tests/javascript/assets
parentc33d0394cf723599d63f9eddbb727c3e57cc5a84 (diff)
refs #4996 had to patch qunit as document.title was not a string but an img element on firefox
Diffstat (limited to 'tests/javascript/assets')
-rw-r--r--tests/javascript/assets/qunit.js15
1 files changed, 9 insertions, 6 deletions
diff --git a/tests/javascript/assets/qunit.js b/tests/javascript/assets/qunit.js
index 836ab3c1bc..06280f5985 100644
--- a/tests/javascript/assets/qunit.js
+++ b/tests/javascript/assets/qunit.js
@@ -2323,12 +2323,15 @@ QUnit.diff = (function() {
if ( config.altertitle && defined.document && document.title ) {
- // show ✖ for good, ✔ for bad suite result in title
- // use escape sequences in case file gets loaded with non-utf-8-charset
- document.title = [
- ( details.failed ? "\u2716" : "\u2714" ),
- document.title.replace( /^[\u2714\u2716] /i, "" )
- ].join( " " );
+ if (document.title === (document.title + '')) {
+ // show ✖ for good, ✔ for bad suite result in title
+ // use escape sequences in case file gets loaded with non-utf-8-charset
+ document.title = [
+ ( details.failed ? "\u2716" : "\u2714" ),
+ document.title.replace( /^[\u2714\u2716] /i, "" )
+ ].join( " " );
+ }
+
}
// clear own sessionStorage items if all tests passed