diff --git a/test/karma-test-shim.js b/test/karma-test-shim.js index f2406abd5d2b..ad81254d06e9 100644 --- a/test/karma-test-shim.js +++ b/test/karma-test-shim.js @@ -95,3 +95,15 @@ function patchTestBedToDestroyFixturesAfterEveryTest(testBed) { testBed.resetTestingModule(); }); } + + +// Filter out any tests explicitly given in the blacklist. +// On the angular/material2 repo, this blacklist is always empty. +// When these tests are run on angular/angular, the blacklist will be replaced +// with all of the known failures when running the component tests with ivy. +var testBlacklist = null; +jasmine.getEnv().configure({ + specFilter: function(spec) { + return !testBlacklist || !testBlacklist[spec.getFullName()]; + } +});