/
VersionDiffTests.js
39 lines (35 loc) · 1.17 KB
/
VersionDiffTests.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
describe(module.id, function() {
afterEach(function () {
TNSClearOutput();
});
it("InterfaceDiff", function() {
if (SYSTEM_VERSION_LESS_THAN("7.1")) {
expect(global.MPContentItem).toBeUndefined();
} else {
var object = new MPContentItem();
expect(object).not.toBeUndefined();
}
});
it("ConstantDiff", function() {
if (SYSTEM_VERSION_LESS_THAN("7.1")) {
expect(global.MKLaunchOptionsCameraKey).toBeUndefined();
} else {
expect(global.MKLaunchOptionsCameraKey).not.toBeUndefined();
}
});
it("PropertyDiff", function() {
var object = SKView.alloc().init();
if (SYSTEM_VERSION_LESS_THAN("8.0")) {
expect(object.allowsTransparency).toBeUndefined();
} else {
expect(object.allowsTransparency).not.toBeUndefined();
}
});
it("FunctionDiff", function() {
if (SYSTEM_VERSION_LESS_THAN("7.1")) {
expect(global.SKTerminateForInvalidReceipt).toBeUndefined();
} else {
expect(global.SKTerminateForInvalidReceipt).not.toBeUndefined();
}
});
});