Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-9692] Anvil: app/test_custom_values test case fails on iOS

GitHub Issuen/a
TypeBug
PriorityLow
StatusClosed
ResolutionWon't Fix
Resolution Date2017-05-01T22:18:35.000+0000
Affected Version/sRelease 2.1.0
Fix Version/sn/a
ComponentsDrillbit
Labelsanvil, core
ReporterMax Stepanov
AssigneeEric Merriman
Created2012-06-21T11:08:20.000+0000
Updated2017-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>

Comments

  1. Opie Cyrus 2012-08-06

    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.
  2. Lee Morris 2017-05-01

    Closing ticket as "Won't Fix" as Anvil is no longer supported.

JSON Source