mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
More tests fixed
This commit is contained in:
@@ -217,25 +217,25 @@ var testFilePath = "~/file-name-resolver-tests/files/test".replace("~", fs.known
|
||||
export function test_file_resolver_with_andorid_phone_portratit() {
|
||||
var fileResolver = new resolver.FileNameResolver(androidPhonePortraitContext);
|
||||
var result = fileResolver.resolveFileName(testFilePath, "xml");
|
||||
TKUnit.assertEqual(result, testFilePath + ".android.xml", "File path");
|
||||
TKUnit.assertEqual(result, testFilePath + ".xml", "File path");
|
||||
}
|
||||
|
||||
export function test_file_resolver_with_andorid_phone_landscape() {
|
||||
var fileResolver = new resolver.FileNameResolver(androidPhoneLandsacpeContext);
|
||||
var result = fileResolver.resolveFileName(testFilePath, "xml");
|
||||
TKUnit.assertEqual(result, testFilePath + ".android.xml", "File path");
|
||||
TKUnit.assertEqual(result, testFilePath + ".land.xml", "File path");
|
||||
}
|
||||
|
||||
export function test_file_resolver_with_andorid_tablet_portrait() {
|
||||
var fileResolver = new resolver.FileNameResolver(androidTabletPortraitContext);
|
||||
var result = fileResolver.resolveFileName(testFilePath, "xml");
|
||||
TKUnit.assertEqual(result, testFilePath + ".android.minWH600.xml", "File path");
|
||||
TKUnit.assertEqual(result, testFilePath + ".minWH600.xml", "File path");
|
||||
}
|
||||
|
||||
export function test_file_resolver_with_ios_phone_landscape() {
|
||||
var fileResolver = new resolver.FileNameResolver(iPhoneLandscapeContext);
|
||||
var result = fileResolver.resolveFileName(testFilePath, "xml");
|
||||
TKUnit.assertEqual(result, testFilePath + ".ios.land.xml", "File path");
|
||||
TKUnit.assertEqual(result, testFilePath + ".land.xml", "File path");
|
||||
}
|
||||
|
||||
export function test_file_resolver_with_ios_phone_portrait() {
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
test.android.xml
|
||||
Reference in New Issue
Block a user