|
| 1 | +import "tns-core-modules/globals"; |
| 2 | +import * as TKUnit from "../tk-unit"; |
| 3 | + |
| 4 | +declare var System: any; |
| 5 | +export function test_global_system_import() { |
| 6 | + TKUnit.assert(System, "System not defined"); |
| 7 | + TKUnit.assert(typeof System.import === "function", "System.import not a function"); |
| 8 | + |
| 9 | + TKUnit.assert((<any>global).System, "global.System not defined"); |
| 10 | + TKUnit.assert(typeof (<any>global).System.import === "function", "global.System.import not a function"); |
| 11 | +} |
| 12 | + |
| 13 | +export function test_global_zonedCallback() { |
| 14 | + TKUnit.assert(typeof zonedCallback === "function", "zonedCallback not defined"); |
| 15 | + TKUnit.assert(typeof global.zonedCallback === "function", "global.zonedCallback not a function"); |
| 16 | +} |
| 17 | + |
| 18 | +export function test_global_moduleMerge() { |
| 19 | + TKUnit.assert(typeof global.moduleMerge === "function", "global.moduleMerge not a function"); |
| 20 | +} |
| 21 | + |
| 22 | +export function test_global_registerModule() { |
| 23 | + TKUnit.assert(typeof global.registerModule === "function", "global.registerModule not a function"); |
| 24 | +} |
| 25 | + |
| 26 | +export function test_global_registerWebpackModules() { |
| 27 | + TKUnit.assert(typeof global.registerWebpackModules === "function", "global.registerWebpackModules not a function"); |
| 28 | +} |
| 29 | + |
| 30 | +export function test_global_loadModule() { |
| 31 | + TKUnit.assert(typeof global.loadModule === "function", "global.loadModule not a function"); |
| 32 | +} |
| 33 | + |
| 34 | +export function test_global_moduleExists() { |
| 35 | + TKUnit.assert(typeof global.moduleExists === "function", "global.moduleExists not a function"); |
| 36 | +} |
| 37 | + |
| 38 | +export function test_global_getRegisteredModules() { |
| 39 | + TKUnit.assert(typeof global.getRegisteredModules === "function", "global.getRegisteredModules not a function"); |
| 40 | +} |
| 41 | + |
| 42 | +export function test_global_Deprecated() { |
| 43 | + TKUnit.assert(typeof global.Deprecated === "function", "global.Deprecated not a function"); |
| 44 | +} |
| 45 | + |
| 46 | +export function test_global_Experimental() { |
| 47 | + TKUnit.assert(typeof global.Experimental === "function", "global.Experimental not a function"); |
| 48 | +} |
0 commit comments