From 667d33c41eb6519a4cd0fb0d929b15021774f0ae Mon Sep 17 00:00:00 2001 From: Paul Gschwendtner Date: Tue, 3 Sep 2019 22:31:17 +0200 Subject: [PATCH] build: add mdc prebuilt theme to karma legacy tests Adds the MDC prebuilt theme to the karma legacy tests. This is consistent with what we did for the Bazel tests. It can cause unexpected differences and confusion when debugging tests in both Bazel and the legacy job (different visual output). --- test/karma.conf.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/test/karma.conf.js b/test/karma.conf.js index b8b6402fa636..72ce16d80999 100644 --- a/test/karma.conf.js +++ b/test/karma.conf.js @@ -55,12 +55,18 @@ module.exports = config => { {pattern: 'test/karma-system-config.js', included: true, watched: false}, {pattern: 'test/karma-test-shim.js', included: true, watched: false}, - // Include a Material theme in the test suite. + // Include a Material theme in the test suite. Also include the MDC theme as + // karma runs tests for the MDC prototype components as well. { pattern: 'dist/packages/**/core/theming/prebuilt/indigo-pink.css', included: true, watched: true }, + { + pattern: 'dist/packages/material-experimental/mdc-theming/prebuilt/indigo-pink.css', + included: true, + watched: true + }, // Includes all package tests and source files into karma. Those files will be watched. // This pattern also matches all sourcemap files and TypeScript files for debugging.