build: Update karma to 1.5.0, karma-firefox-launcher to 1.0.1
authorPaladox <thomasmulhall410@yahoo.com>
Mon, 20 Mar 2017 19:25:36 +0000 (19:25 +0000)
committerKrinkle <krinklemail@gmail.com>
Sat, 15 Apr 2017 03:14:55 +0000 (03:14 +0000)
karma:
 Changelog at https://github.com/karma-runner/karma/releases
 https://github.com/karma-runner/karma/compare/v1.1.0...v1.5.0

karma-firefox-launcher:
 Changelog at https://github.com/karma-runner/karma-firefox-launcher/blob/master/CHANGELOG.md#101-2017-03-04
 https://github.com/karma-runner/karma-firefox-launcher/compare/v1.0.0...v1.0.1

Karma v1.1.1 added use of `<script crossorigin="anonymous">` for
the urls it initially loads. While most requests will be done by
MW itself directly (and served locally via the proxy at /w/) the
initial request cannot come from the proxy and is loaded from wgServer
directly. Therefore we need to set crossOriginAttribute=false to override
the new default that v1.1.1 introduced.

Change-Id: I9f5067b949c0a77e46f47c2a110a7b5df5953fda

Gruntfile.js
package.json

index 6c56772..811d2c0 100644 (file)
@@ -92,7 +92,10 @@ module.exports = function ( grunt ) {
                                singleRun: true,
                                autoWatch: false,
                                // Some tests in extensions don't yield for more than the default 10s (T89075)
-                               browserNoActivityTimeout: 60 * 1000
+                               browserNoActivityTimeout: 60 * 1000,
+                               // Karma requires Same-Origin (or CORS) by default since v1.1.1
+                               // for better stacktraces. But we load the first request from wgServer
+                               crossOriginAttribute: false
                        },
                        main: {
                                browsers: [ 'Chrome' ]
index 762c5e7..29388c5 100644 (file)
@@ -19,9 +19,9 @@
     "grunt-karma": "2.0.0",
     "grunt-stylelint": "0.7.0",
     "grunt-webdriver": "2.0.3",
-    "karma": "1.1.0",
+    "karma": "1.5.0",
     "karma-chrome-launcher": "2.0.0",
-    "karma-firefox-launcher": "1.0.0",
+    "karma-firefox-launcher": "1.0.1",
     "karma-mocha-reporter": "2.2.3",
     "karma-qunit": "1.0.0",
     "qunitjs": "1.22.0",