From acddd42e12823a47727fda936ddef169718b6eae Mon Sep 17 00:00:00 2001 From: Vladimir Enchev Date: Tue, 26 Jan 2016 13:48:00 +0200 Subject: [PATCH] test reworked for ios --- apps/tests/file-system-tests.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/apps/tests/file-system-tests.ts b/apps/tests/file-system-tests.ts index 48beedd90..871132a64 100644 --- a/apps/tests/file-system-tests.ts +++ b/apps/tests/file-system-tests.ts @@ -10,6 +10,7 @@ import fs = require("file-system"); import TKUnit = require("./TKUnit"); import appModule = require("application"); +import platform = require("platform"); // // ## Path @@ -241,7 +242,11 @@ export var testFileReadWriteBinary = function () { // var destination = destinationFile.readSync(e=> { error = e; }); TKUnit.assertNull(error); - TKUnit.assertEqual(source, destination); + if (platform.device.os === platform.platformNames.ios) { + TKUnit.assertTrue(source.isEqualToData(destination)); + } else { + TKUnit.assertEqual(source, destination); + } destinationFile.removeSync(); // // ```