Content-Length: 302492 | pFad | http://github.com/NativeScript/napi-android/commit/ab9633cd9740e616b330cb7b53874a2ac846b344

4A quickjs: run tests async · NativeScript/napi-android@ab9633c · GitHub
Skip to content

Commit ab9633c

Browse files
committed
quickjs: run tests async
1 parent 4707662 commit ab9633c

File tree

1 file changed

+15
-12
lines changed
  • test-app/app/src/main/assets/app/Infrastructure/Jasmine/jasmine-2.0.1

1 file changed

+15
-12
lines changed

Diff for: test-app/app/src/main/assets/app/Infrastructure/Jasmine/jasmine-2.0.1/boot.js

+15-12
Original file line numberDiff line numberDiff line change
@@ -40,18 +40,21 @@ var TerminalReporter = require('../jasmine-reporters/terminal_reporter').Termina
4040
},
4141

4242
it: function(desc, func) {
43-
return env.it(desc, func);
44-
// if (func.length > 0) {
45-
// return env.it(desc, func);
46-
// } else {
47-
// return env.it(desc, function(done) {
48-
// func();
49-
// __ns__setTimeout(() => {
50-
// done();
51-
// }, 1)
52-
//
53-
// })
54-
// }
43+
if (global.__engine === "QuickJS") {
44+
if (func.length > 0) {
45+
return env.it(desc, func);
46+
} else {
47+
return env.it(desc, function(done) {
48+
func();
49+
__ns__setTimeout(() => {
50+
done();
51+
}, 1)
52+
53+
})
54+
}
55+
} else {
56+
return env.it(desc, func);
57+
}
5558
},
5659

5760
xit: function(desc, func) {

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/NativeScript/napi-android/commit/ab9633cd9740e616b330cb7b53874a2ac846b344

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy