File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -347,8 +347,15 @@ export class DriverTestRunner {
347347 */
348348 async _collectSpeech ( debounceDelay , asyncOperation ) {
349349 let spoken = [ ] ;
350+ const isJAWS = ( await this . collectedCapabilities ) . atName == 'JAWS' ;
351+
350352 const speechJob = startJob ( async signal => {
351- for await ( const speech of signal . cancelable ( this . atDriver . speeches ( ) ) ) {
353+ for await ( let speech of signal . cancelable ( this . atDriver . speeches ( ) ) ) {
354+ if ( isJAWS ) {
355+ // temporary workaround to double-escaped string literals.
356+ // see https://github.com/w3c/aria-at-automation-harness/issues/90
357+ speech = JSON . parse ( `"${ speech } "` ) ;
358+ }
352359 spoken . push ( speech ) ;
353360 this . log ( RunnerMessage . SPEECH_EVENT , { spokenText : speech } ) ;
354361 }
You can’t perform that action at this time.
0 commit comments