[TIMOB-9692] Anvil: app/test_custom_values test case fails on iOS
| GitHub Issue | n/a |
|---|---|
| Type | Bug |
| Priority | Low |
| Status | Closed |
| Resolution | Won't Fix |
| Resolution Date | 2017-05-01T22:18:35.000+0000 |
| Affected Version/s | Release 2.1.0 |
| Fix Version/s | n/a |
| Components | Drillbit |
| Labels | anvil, core |
| Reporter | Max Stepanov |
| Assignee | Eric Merriman |
| Created | 2012-06-21T11:08:20.000+0000 |
| Updated | 2017-05-23T20:37:28.000+0000 |
Description
Test case *app/test_custom_values* fails under Anvil, but works fine in an app.
var testRun = {};
function valueOf(test, actual) {
return {
shouldBe : function(expected) {
if (expected !== actual) {
Ti.API.info("expected: <"+expected+">, actual: <"+actual+">");
}
}
};
}
Ti.API.info("-- start --");
valueOf(testRun, Ti.App.id).shouldBe('org.appcelerator.titanium.testharness');
valueOf(testRun, Ti.App.name).shouldBe('test_harness');
valueOf(testRun, Ti.App.version).shouldBe("1.0.1");
valueOf(testRun, Ti.App.publisher).shouldBe("test publisher");
valueOf(testRun, Ti.App.url).shouldBe("http://www.test.com");
valueOf(testRun, Ti.App.description).shouldBe('test description');
valueOf(testRun, Ti.App.copyright).shouldBe('copyright 2010 test');
Ti.API.info("-- end --");
tiapp.xml section:
<id>org.appcelerator.titanium.testharness</id>
<name>test_harness</name>
<version>1.0.1</version>
<publisher>test publisher</publisher>
<url>http://www.test.com</url>
<description>test description</description>
<copyright>copyright 2010 test</copyright>
Nothing about this bug report indicates this as a Anvil bug versus platform bug. This looks like a failure stemming from the test being run within a required file. This should be verified in a standalone test case using require.
Closing ticket as "Won't Fix" as Anvil is no longer supported.