mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 846685 - Add optional, optionally-async setUp, tearDown methods to metro-chrome test fixture objects. r=jimm
This commit is contained in:
parent
4f03c350fb
commit
ad31f58dce
@ -412,10 +412,15 @@ function runTests() {
|
||||
Task.spawn(function() {
|
||||
while((gCurrentTest = gTests.shift())){
|
||||
info(gCurrentTest.desc);
|
||||
yield Task.spawn(gCurrentTest.run);
|
||||
if ('function' == typeof gCurrentTest.setUp) {
|
||||
yield Task.spawn(gCurrentTest.setUp.bind(gCurrentTest));
|
||||
}
|
||||
yield Task.spawn(gCurrentTest.run.bind(gCurrentTest));
|
||||
if ('function' == typeof gCurrentTest.tearDown) {
|
||||
yield Task.spawn(gCurrentTest.tearDown.bind(gCurrentTest));
|
||||
}
|
||||
info("END "+gCurrentTest.desc);
|
||||
}
|
||||
info("done with gTests while loop, calling finish");
|
||||
finish();
|
||||
});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user