Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 | 1 |
| 2 var video = null; | 2 var video = null; |
| 3 var mediaElement = document; // If not set, an event from any element will trigg er a waitForEvent() callback. | 3 var mediaElement = document; // If not set, an event from any element will trigg er a waitForEvent() callback. |
| 4 var console = null; | 4 var console = null; |
| 5 var printFullTestDetails = true; // This is optionaly switched of by test whose tested values can differ. (see disableFullTestDetailsPrinting()) | 5 var printFullTestDetails = true; // This is optionaly switched of by test whose tested values can differ. (see disableFullTestDetailsPrinting()) |
| 6 var Failed = false; | 6 var Failed = false; |
| 7 | 7 |
| 8 var track = null; // Current TextTrack being tested. | 8 var track = null; // Current TextTrack being tested. |
| 9 var cues = null; // Current TextTrackCueList being tested. | 9 var cues = null; // Current TextTrackCueList being tested. |
| 10 var numberOfTrackTests = 0; | 10 var numberOfTrackTests = 0; |
| (...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 218 logResult(exception instanceof DOMException && exception.code === eval(excep tionString), | 218 logResult(exception instanceof DOMException && exception.code === eval(excep tionString), |
| 219 "TEST(" + testString + ") THROWS(" + exceptionString + ": " + exception. message + ")"); | 219 "TEST(" + testString + ") THROWS(" + exceptionString + ": " + exception. message + ")"); |
| 220 } | 220 } |
| 221 | 221 |
| 222 function testException(testString, exceptionString) { | 222 function testException(testString, exceptionString) { |
| 223 try { | 223 try { |
| 224 eval(testString); | 224 eval(testString); |
| 225 } catch (ex) { | 225 } catch (ex) { |
| 226 var exception = ex; | 226 var exception = ex; |
| 227 } | 227 } |
| 228 logResult(exception !== undefined && exception == eval(exceptionString), | 228 logResult(exception !== undefined && exception + '' === exceptionString, |
|
acolwell GONE FROM CHROMIUM
2014/03/29 01:40:08
Why did you need to make this change? This could p
sandersd (OOO until July 31)
2014/03/31 20:41:08
Looks like I didn't quite understand how the other
| |
| 229 "TEST(" + testString + ") THROWS(" + exceptionString + ")"); | 229 "TEST(" + testString + ") THROWS(" + exceptionString + ")"); |
| 230 } | 230 } |
| 231 | 231 |
| 232 var testEnded = false; | 232 var testEnded = false; |
| 233 | 233 |
| 234 function endTest() | 234 function endTest() |
| 235 { | 235 { |
| 236 consoleWrite("END OF TEST"); | 236 consoleWrite("END OF TEST"); |
| 237 testEnded = true; | 237 testEnded = true; |
| 238 if (window.testRunner) | 238 if (window.testRunner) |
| (...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 357 | 357 |
| 358 func(); | 358 func(); |
| 359 } | 359 } |
| 360 | 360 |
| 361 requiredEvents = []; | 361 requiredEvents = []; |
| 362 for (var i = 0; i < eventList.length; i++) { | 362 for (var i = 0; i < eventList.length; i++) { |
| 363 requiredEvents[i] = eventList[i][1]; | 363 requiredEvents[i] = eventList[i][1]; |
| 364 eventList[i][0].addEventListener(requiredEvents[i], _eventCallback, true ); | 364 eventList[i][0].addEventListener(requiredEvents[i], _eventCallback, true ); |
| 365 } | 365 } |
| 366 } | 366 } |
| OLD | NEW |