OLD | NEW |
1 if (self.importScripts) { | 1 if (self.importScripts) { |
2 importScripts('../../resources/js-test.js'); | 2 importScripts('../../../resources/js-test.js'); |
3 importScripts('common.js'); | 3 importScripts('common.js'); |
4 } | 4 } |
5 | 5 |
6 function shouldEvaluateAsSilent(expressionToEval, expectedResult) | 6 function shouldEvaluateAsSilent(expressionToEval, expectedResult) |
7 { | 7 { |
8 var result = eval(expressionToEval); | 8 var result = eval(expressionToEval); |
9 if (result !== expectedResult) { | 9 if (result !== expectedResult) { |
10 testFailed(expressionToEval + " evaluated to " + result + " instead of "
+ expectedResult); | 10 testFailed(expressionToEval + " evaluated to " + result + " instead of "
+ expectedResult); |
11 } | 11 } |
12 } | 12 } |
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
178 }); | 178 }); |
179 } | 179 } |
180 | 180 |
181 Promise.all([ | 181 Promise.all([ |
182 testHmac(), | 182 testHmac(), |
183 testGenerateRsaKey(), | 183 testGenerateRsaKey(), |
184 testAesGcm(), | 184 testAesGcm(), |
185 testHmac(), | 185 testHmac(), |
186 testAesGcm(), | 186 testAesGcm(), |
187 ]).then(notifySuccess, notifyFailure); | 187 ]).then(notifySuccess, notifyFailure); |
OLD | NEW |