]> git.ipfire.org Git - thirdparty/Chart.js.git/commitdiff
Prevent test timeouts due to Chrome backgrounding (#8360)
authorJukka Kurkela <jukka.kurkela@gmail.com>
Mon, 1 Feb 2021 12:50:18 +0000 (14:50 +0200)
committerGitHub <noreply@github.com>
Mon, 1 Feb 2021 12:50:18 +0000 (07:50 -0500)
* Prevent test timeouts due to Chrome backgrounding

* Add karma.conf.js to test filters

.github/workflows/ci.yml
karma.conf.js

index a4e620e8e046ddb1061271079cd3a98482bb4193..8d691b398317bf12fc598627fc44d70c1ee6e1f5 100644 (file)
@@ -36,6 +36,7 @@ jobs:
             - 'src/**'
           test:
             - 'test/**'
+            - 'karma.conf.js'
           types:
             - 'types/**'
     - name: Install
index 29ab1eb76d015bede5764f0c43b1d6dc1b9e3c74..3eefdae6cda54b8d3f18a670ddbd77ac719c742f 100644 (file)
@@ -1,5 +1,3 @@
-/* eslint-disable import/no-commonjs */
-
 const commonjs = require('@rollup/plugin-commonjs');
 const istanbul = require('rollup-plugin-istanbul');
 const json = require('@rollup/plugin-json');
@@ -49,7 +47,10 @@ module.exports = function(karma) {
                        chrome: {
                                base: 'Chrome',
                                flags: [
-                                       '--disable-accelerated-2d-canvas'
+                                       '--disable-accelerated-2d-canvas',
+                                       '--disable-background-timer-throttling',
+                                       '--disable-backgrounding-occluded-windows',
+                                       '--disable-renderer-backgrounding'
                                ]
                        },
                        firefox: {