Skip to content

Commit

Permalink
FLUID-6177: Fixing TextToSpeech tests in IE11
Browse files Browse the repository at this point in the history
  • Loading branch information
jobara committed Jul 10, 2018
1 parent 6ad5f14 commit cc2ad32
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion tests/component-tests/textToSpeech/js/TextToSpeechTests.js
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ https://github.com/fluid-project/infusion/raw/master/Infusion-LICENSE.txt
}
});

fluid.defaults("fluid.tests.textToSpeech.utteranceTests", {
fluid.defaults("fluid.tests.textToSpeech.utteranceEnvironment", {
gradeNames: "fluid.test.testEnvironment",
components: {
utterance: {
Expand Down Expand Up @@ -380,6 +380,14 @@ https://github.com/fluid-project/infusion/raw/master/Infusion-LICENSE.txt
});
};

fluid.tests.textToSpeech.utteranceTests = function () {
fluid.test.conditionalTestUtils.chooseTestByPromiseResult("Confirming if TTS is available for Utterance tests",
fluid.textToSpeech.checkTTSSupport,
fluid.tests.textToSpeech.utteranceEnvironment,
fluid.test.conditionalTestUtils.bypassTest,
"Browser appears to support TTS", "Browser does not appear to support TTS");
};

/*********************************************************************************************
* Test Runner
*********************************************************************************************/
Expand Down

0 comments on commit cc2ad32

Please sign in to comment.