Problem description
Unit test for ALOY-709 (included in
https://github.com/appcelerator/alloy/tree/master/test/apps/testing/ALOY-709 ) is reporting failures.
Steps to reproduce
1. Import the testing project from
https://github.com/appcelerator/alloy/tree/master/test/apps/testing/ALOY-709 and run (autostyle in config.json is set to 'false')
Result: 7 specs failed - see attachement 'ALOY709_autostyleTrue' for details
2. Set autostyle:true in config.json and run
Result: 9 specs failed - see attachement 'ALOY709_autostyleFalse' for details
Additional notes
Since is reproducible also using 3.2.2.GA and 1.3.1.GA is not a regression.
Switching back to Alloy version 1.2.0 & SDK 3.2.2.GA, only 1 failure is reported. See
'ALOY709_autostyleTrue_alloy121' attachment.
I updated the tests to fix two unrelated issues. There was a mistake in the counter used within a for-loop. For the other, the SDK now provides the apiName property on all proxies. The unit tests were finding that native property, instead of the one added by Alloy and thus failing. I removed those tests since the property is always present. PR: https://github.com/appcelerator/alloy/pull/360 Functional test: test app: https://github.com/appcelerator/alloy/tree/master/test/apps/testing/ALOY-709 Functional test can pass if the app can be run on all supported platforms and the automated runtime unit tests all pass. This must be confirmed under three separate app conditions for each platform. Once with autoStyle:true in the config.json Once with autoStyle:false in the config.json Once with no entry for autoStyle in the config.json
Reopening as I see some unit tests fail. This is random & intermittent. Sometimes I see failures with autoStyle:true & sometimes I do not, same for other 2 cases.
With no entry for autoStyle for android:
We see this errors:[INFO] : Begin Alloy Test Suite [INFO] : [PASS] labels controller --> #labels is defined [INFO] : [PASS] labels controller --> #labels is a Titanium proxy object [INFO] : [PASS] labels controller --> #labels component has correct style [INFO] : [PASS] labels controller --> #__alloyId2 is defined [INFO] : [PASS] labels controller --> #__alloyId2 is a Titanium proxy object [INFO] : [PASS] labels controller --> #__alloyId2 component is a Ti.UI.Label [INFO] : [FAIL] labels controller --> #__alloyId2 component has correct style [INFO] : [PASS] labels controller --> #__alloyId3 is defined [INFO] : [PASS] labels controller --> #__alloyId3 is a Titanium proxy object [INFO] : [PASS] labels controller --> #__alloyId3 component is a Ti.UI.Label [INFO] : [PASS] labels controller --> #__alloyId3 component has correct style [INFO] : [PASS] labels controller --> #__alloyId4 is defined [INFO] : [PASS] labels controller --> #__alloyId4 is a Titanium proxy object [INFO] : [PASS] labels controller --> #__alloyId4 component is a Ti.UI.Label [INFO] : [FAIL] labels controller --> #__alloyId4 component has correct style [INFO] : [PASS] buttons controller --> #button1 is defined [INFO] : [PASS] buttons controller --> #button1 is a Titanium proxy object [INFO] : [PASS] buttons controller --> #button1 component is a Ti.UI.Button [INFO] : [PASS] buttons controller --> #button1 component has correct style [INFO] : [PASS] buttons controller --> #button2 is defined [INFO] : [PASS] buttons controller --> #button2 is a Titanium proxy object [INFO] : [PASS] buttons controller --> #button2 component is a Ti.UI.Button [INFO] : [PASS] buttons controller --> #button2 component has correct style [INFO] : [PASS] buttons controller --> #button3 is defined [INFO] : [PASS] buttons controller --> #button3 is a Titanium proxy object [INFO] : [PASS] buttons controller --> #button3 component is a Ti.UI.Button [INFO] : [PASS] buttons controller --> #button3 component has correct style [INFO] : [PASS] buttons controller --> has #button3, which has no apiName or classes [INFO] : [PASS] index controller --> #index is defined [INFO] : [PASS] index controller --> #index is a Titanium proxy object [INFO] : [PASS] index controller --> #index component is a Ti.UI.Window [INFO] : [PASS] index controller --> #index component has correct style [INFO] : [PASS] index controller --> #label is defined [INFO] : [PASS] index controller --> #label is a Titanium proxy object [INFO] : [PASS] index controller --> #label component is a Ti.UI.Label [INFO] : [PASS] index controller --> #label component has correct style [INFO] : [FAIL] index controller --> has #index, which has "classes" property [INFO] : [PASS] index controller --> has #index, which has "apiName" property [INFO] : [FAIL] index controller --> has #label, which has "classes" property [INFO] : [PASS] index controller --> has #label, which has "apiName" property [INFO] : [INFO] : labels controller #__alloyId2 component has correct style [INFO] : expected [object Label] to have style: [INFO] : {"apiName":"Ti.UI.Label","backgroundColor":"#ccf","classes":["someClass"],"color":"#000","height":"size","id":"__alloyId2","text":"label 1","top":15,"width":"size"} [INFO] : but found this instead: [INFO] : {"apiName":"Ti.UI.Label","backgroundColor":"#ccf","color":"#000","height":"size","id":"__alloyId2","text":"label 1","top":15,"width":"size"} [INFO] : Error: expected [object Label] to have style: [INFO] : {"apiName":"Ti.UI.Label","backgroundColor":"#ccf","classes":["someClass"],"color":"#000","height":"size","id":"__alloyId2","text":"label 1","top":15,"width":"size"} [INFO] : but found this instead: [INFO] : {"apiName":"Ti.UI.Label","backgroundColor":"#ccf","color":"#000","height":"size","id":"__alloyId2","text":"label 1","top":15,"width":"size"} [INFO] : at new <anonymous> (jasmine.js:63:33) [INFO] : at [object Object].toHaveStyle (jasmine.js:636:33) [INFO] : at [object Object].<anonymous> (runtimeTester.js:73:26) [INFO] : at [object Object].execute (jasmine.js:496:19) [INFO] : at [object Object].next_ (jasmine.js:1130:37) [INFO] : at [object Object].start (jasmine.js:1097:10) [INFO] : at [object Object].execute (jasmine.js:1334:16) [INFO] : at [object Object].next_ (jasmine.js:1130:37) [INFO] : at jasmine.js:1128:106 [INFO] : at [object Object].finish (jasmine.js:1317:19) [INFO] : [INFO] : labels controller #__alloyId4 component has correct style [INFO] : expected [object Label] to have style: [INFO] : {"apiName":"Ti.UI.Label","backgroundColor":"#ccf","classes":["someClass"],"color":"#000","height":"size","id":"__alloyId4","text":"label 3","top":15,"width":"size"} [INFO] : but found this instead: [INFO] : {"apiName":"Ti.UI.Label","backgroundColor":"#ccf","color":"#000","height":"size","id":"__alloyId4","text":"label 3","top":15,"width":"size"} [INFO] : Error: expected [object Label] to have style: [INFO] : {"apiName":"Ti.UI.Label","backgroundColor":"#ccf","classes":["someClass"],"color":"#000","height":"size","id":"__alloyId4","text":"label 3","top":15,"width":"size"} [INFO] : but found this instead: [INFO] : {"apiName":"Ti.UI.Label","backgroundColor":"#ccf","color":"#000","height":"size","id":"__alloyId4","text":"label 3","top":15,"width":"size"} [INFO] : at new <anonymous> (jasmine.js:63:33) [INFO] : at [object Object].toHaveStyle (jasmine.js:636:33) [INFO] : at [object Object].<anonymous> (runtimeTester.js:73:26) [INFO] : at [object Object].execute (jasmine.js:496:19) [INFO] : at [object Object].next_ (jasmine.js:1130:37) [INFO] : at [object Object].start (jasmine.js:1097:10) [INFO] : at [object Object].execute (jasmine.js:1334:16) [INFO] : at [object Object].next_ (jasmine.js:1130:37) [INFO] : at jasmine.js:1128:106 [INFO] : at [object Object].finish (jasmine.js:1317:19) [INFO] : [INFO] : index controller has #index, which has "classes" property [INFO] : expected undefined to contain same elements as [] [INFO] : Error: expected undefined to contain same elements as [] [INFO] : at new <anonymous> (jasmine.js:63:33) [INFO] : at [object Object].toContainSameAs (jasmine.js:636:33) [INFO] : at [object Object].<anonymous> (specs/index.js:42:37) [INFO] : at [object Object].execute (jasmine.js:496:19) [INFO] : at [object Object].next_ (jasmine.js:1130:37) [INFO] : at [object Object].start (jasmine.js:1097:10) [INFO] : at [object Object].execute (jasmine.js:1334:16) [INFO] : at [object Object].next_ (jasmine.js:1130:37) [INFO] : at [object Object].start (jasmine.js:1097:10) [INFO] : at [object Object].execute (jasmine.js:1437:16) [INFO] : [INFO] : index controller has #label, which has "classes" property [INFO] : expected undefined to contain same elements as ["main","shadow"] [INFO] : Error: expected undefined to contain same elements as ["main","shadow"] [INFO] : at new <anonymous> (jasmine.js:63:33) [INFO] : at [object Object].toContainSameAs (jasmine.js:636:33) [INFO] : at [object Object].<anonymous> (specs/index.js:50:37) [INFO] : at [object Object].execute (jasmine.js:496:19) [INFO] : at [object Object].next_ (jasmine.js:1130:37) [INFO] : at [object Object].start (jasmine.js:1097:10) [INFO] : at [object Object].execute (jasmine.js:1334:16) [INFO] : at [object Object].next_ (jasmine.js:1130:37) [INFO] : at [object Object].start (jasmine.js:1097:10) [INFO] : at [object Object].execute (jasmine.js:1437:16) [INFO] : Finished in 0.139 seconds [INFO] : 40 specs, 4 failures [INFO] : ALERT: (KrollRuntimeThread) [695,695] 40 specs, 4 failedWith autoStyle:false, for IOS
We see following logs:[INFO] : Begin Alloy Test Suite [INFO] : [PASS] labels controller --> #labels is defined [INFO] : [PASS] labels controller --> #labels is a Titanium proxy object [INFO] : [PASS] labels controller --> #labels component has correct style [INFO] : [PASS] labels controller --> #__alloyId2 is defined [INFO] : [PASS] labels controller --> #__alloyId2 is a Titanium proxy object [INFO] : [PASS] labels controller --> #__alloyId2 component is a Ti.UI.Label [INFO] : [FAIL] labels controller --> #__alloyId2 component has correct style [INFO] : [PASS] labels controller --> #__alloyId3 is defined [INFO] : [PASS] labels controller --> #__alloyId3 is a Titanium proxy object [INFO] : [PASS] labels controller --> #__alloyId3 component is a Ti.UI.Label [INFO] : [PASS] labels controller --> #__alloyId3 component has correct style [INFO] : [PASS] labels controller --> #__alloyId4 is defined [INFO] : [PASS] labels controller --> #__alloyId4 is a Titanium proxy object [INFO] : [PASS] labels controller --> #__alloyId4 component is a Ti.UI.Label [INFO] : [FAIL] labels controller --> #__alloyId4 component has correct style [INFO] : [PASS] buttons controller --> #button1 is defined [INFO] : [PASS] buttons controller --> #button1 is a Titanium proxy object [INFO] : [PASS] buttons controller --> #button1 component is a Ti.UI.Button [INFO] : [PASS] buttons controller --> #button1 component has correct style [INFO] : [PASS] buttons controller --> #button2 is defined [INFO] : [PASS] buttons controller --> #button2 is a Titanium proxy object [INFO] : [PASS] buttons controller --> #button2 component is a Ti.UI.Button [INFO] : [PASS] buttons controller --> #button2 component has correct style [INFO] : [PASS] buttons controller --> #button3 is defined [INFO] : [PASS] buttons controller --> #button3 is a Titanium proxy object [INFO] : [PASS] buttons controller --> #button3 component is a Ti.UI.Button [INFO] : [PASS] buttons controller --> #button3 component has correct style [INFO] : [PASS] buttons controller --> has #button3, which has no apiName or classes [INFO] : [PASS] index controller --> #index is defined [INFO] : [PASS] index controller --> #index is a Titanium proxy object [INFO] : [PASS] index controller --> #index component is a Ti.UI.Window [INFO] : [PASS] index controller --> #index component has correct style [INFO] : [PASS] index controller --> #label is defined [INFO] : [PASS] index controller --> #label is a Titanium proxy object [INFO] : [PASS] index controller --> #label component is a Ti.UI.Label [INFO] : [PASS] index controller --> #label component has correct style [INFO] : [FAIL] index controller --> has #index, which has "classes" property [INFO] : [PASS] index controller --> has #index, which has "apiName" property [INFO] : [FAIL] index controller --> has #label, which has "classes" property [INFO] : [PASS] index controller --> has #label, which has "apiName" property [INFO] : [INFO] : labels controller #__alloyId2 component has correct style [INFO] : expected [object Label] to have style: [INFO] : {"apiName":"Ti.UI.Label","backgroundColor":"#ccf","classes":["someClass"],"color":"#000","height":"size","id":"__alloyId2","text":"label 1","top":15,"width":"size"} [INFO] : but found this instead: [INFO] : {"apiName":"Ti.UI.Label","backgroundColor":"#ccf","color":"#000","height":"size","id":"__alloyId2","text":"label 1","top":15,"width":"size"} [INFO] : Error: expected [object Label] to have style: [INFO] : {"apiName":"Ti.UI.Label","backgroundColor":"#ccf","classes":["someClass"],"color":"#000","height":"size","id":"__alloyId2","text":"label 1","top":15,"width":"size"} [INFO] : but found this instead: [INFO] : {"apiName":"Ti.UI.Label","backgroundColor":"#ccf","color":"#000","height":"size","id":"__alloyId2","text":"label 1","top":15,"width":"size"} [INFO] : at new <anonymous> (jasmine.js:63:33) [INFO] : at [object Object].toHaveStyle (jasmine.js:636:33) [INFO] : at [object Object].<anonymous> (runtimeTester.js:73:26) [INFO] : at [object Object].execute (jasmine.js:496:19) [INFO] : at [object Object].next_ (jasmine.js:1130:37) [INFO] : at [object Object].start (jasmine.js:1097:10) [INFO] : at [object Object].execute (jasmine.js:1334:16) [INFO] : at [object Object].next_ (jasmine.js:1130:37) [INFO] : at jasmine.js:1128:106 [INFO] : at [object Object].finish (jasmine.js:1317:19) [INFO] : [INFO] : labels controller #__alloyId4 component has correct style [INFO] : expected [object Label] to have style: [INFO] : {"apiName":"Ti.UI.Label","backgroundColor":"#ccf","classes":["someClass"],"color":"#000","height":"size","id":"__alloyId4","text":"label 3","top":15,"width":"size"} [INFO] : but found this instead: [INFO] : {"apiName":"Ti.UI.Label","backgroundColor":"#ccf","color":"#000","height":"size","id":"__alloyId4","text":"label 3","top":15,"width":"size"} [INFO] : Error: expected [object Label] to have style: [INFO] : {"apiName":"Ti.UI.Label","backgroundColor":"#ccf","classes":["someClass"],"color":"#000","height":"size","id":"__alloyId4","text":"label 3","top":15,"width":"size"} [INFO] : but found this instead: [INFO] : {"apiName":"Ti.UI.Label","backgroundColor":"#ccf","color":"#000","height":"size","id":"__alloyId4","text":"label 3","top":15,"width":"size"} [INFO] : at new <anonymous> (jasmine.js:63:33) [INFO] : at [object Object].toHaveStyle (jasmine.js:636:33) [INFO] : at [object Object].<anonymous> (runtimeTester.js:73:26) [INFO] : at [object Object].execute (jasmine.js:496:19) [INFO] : at [object Object].next_ (jasmine.js:1130:37) [INFO] : at [object Object].start (jasmine.js:1097:10) [INFO] : at [object Object].execute (jasmine.js:1334:16) [INFO] : at [object Object].next_ (jasmine.js:1130:37) [INFO] : at jasmine.js:1128:106 [INFO] : at [object Object].finish (jasmine.js:1317:19) [INFO] : [INFO] : index controller has #index, which has "classes" property [INFO] : expected undefined to contain same elements as [] [INFO] : Error: expected undefined to contain same elements as [] [INFO] : at new <anonymous> (jasmine.js:63:33) [INFO] : at [object Object].toContainSameAs (jasmine.js:636:33) [INFO] : at [object Object].<anonymous> (specs/index.js:42:37) [INFO] : at [object Object].execute (jasmine.js:496:19) [INFO] : at [object Object].next_ (jasmine.js:1130:37) [INFO] : at [object Object].start (jasmine.js:1097:10) [INFO] : at [object Object].execute (jasmine.js:1334:16) [INFO] : at [object Object].next_ (jasmine.js:1130:37) [INFO] : at [object Object].start (jasmine.js:1097:10) [INFO] : at [object Object].execute (jasmine.js:1437:16) [INFO] : [INFO] : index controller has #label, which has "classes" property [INFO] : expected undefined to contain same elements as ["main","shadow"] [INFO] : Error: expected undefined to contain same elements as ["main","shadow"] [INFO] : at new <anonymous> (jasmine.js:63:33) [INFO] : at [object Object].toContainSameAs (jasmine.js:636:33) [INFO] : at [object Object].<anonymous> (specs/index.js:50:37) [INFO] : at [object Object].execute (jasmine.js:496:19) [INFO] : at [object Object].next_ (jasmine.js:1130:37) [INFO] : at [object Object].start (jasmine.js:1097:10) [INFO] : at [object Object].execute (jasmine.js:1334:16) [INFO] : at [object Object].next_ (jasmine.js:1130:37) [INFO] : at [object Object].start (jasmine.js:1097:10) [INFO] : at [object Object].execute (jasmine.js:1437:16) [INFO] : Finished in 0.145 seconds [INFO] : 40 specs, 4 failures [INFO] : ALERT: (KrollRuntimeThread) [630,630] 40 specs, 4 failedWith autoStyle:false, for android:
We see the following logs:[INFO] : Begin Alloy Test Suite [INFO] : [PASS] labels controller --> #labels is defined [INFO] : [PASS] labels controller --> #labels is a Titanium proxy object [INFO] : [PASS] labels controller --> #labels component has correct style [INFO] : [PASS] labels controller --> #__alloyId2 is defined [INFO] : [PASS] labels controller --> #__alloyId2 is a Titanium proxy object [INFO] : [PASS] labels controller --> #__alloyId2 component is a Ti.UI.Label [INFO] : [FAIL] labels controller --> #__alloyId2 component has correct style [INFO] : [PASS] labels controller --> #__alloyId3 is defined [INFO] : [PASS] labels controller --> #__alloyId3 is a Titanium proxy object [INFO] : [PASS] labels controller --> #__alloyId3 component is a Ti.UI.Label [INFO] : [PASS] labels controller --> #__alloyId3 component has correct style [INFO] : [PASS] labels controller --> #__alloyId4 is defined [INFO] : [PASS] labels controller --> #__alloyId4 is a Titanium proxy object [INFO] : [PASS] labels controller --> #__alloyId4 component is a Ti.UI.Label [INFO] : [FAIL] labels controller --> #__alloyId4 component has correct style [INFO] : [PASS] buttons controller --> #button1 is defined [INFO] : [PASS] buttons controller --> #button1 is a Titanium proxy object [INFO] : [PASS] buttons controller --> #button1 component is a Ti.UI.Button [INFO] : [PASS] buttons controller --> #button1 component has correct style [INFO] : [PASS] buttons controller --> #button2 is defined [INFO] : [PASS] buttons controller --> #button2 is a Titanium proxy object [INFO] : [PASS] buttons controller --> #button2 component is a Ti.UI.Button [INFO] : [PASS] buttons controller --> #button2 component has correct style [INFO] : [PASS] buttons controller --> #button3 is defined [INFO] : [PASS] buttons controller --> #button3 is a Titanium proxy object [INFO] : [PASS] buttons controller --> #button3 component is a Ti.UI.Button [INFO] : [PASS] buttons controller --> #button3 component has correct style [INFO] : [PASS] buttons controller --> has #button3, which has no apiName or classes [INFO] : [PASS] index controller --> #index is defined [INFO] : [PASS] index controller --> #index is a Titanium proxy object [INFO] : [PASS] index controller --> #index component is a Ti.UI.Window [INFO] : [PASS] index controller --> #index component has correct style [INFO] : [PASS] index controller --> #label is defined [INFO] : [PASS] index controller --> #label is a Titanium proxy object [INFO] : [PASS] index controller --> #label component is a Ti.UI.Label [INFO] : [PASS] index controller --> #label component has correct style [INFO] : [FAIL] index controller --> has #index, which has "classes" property [INFO] : [PASS] index controller --> has #index, which has "apiName" property [INFO] : [FAIL] index controller --> has #label, which has "classes" property [INFO] : [PASS] index controller --> has #label, which has "apiName" property [INFO] : [INFO] : labels controller #__alloyId2 component has correct style [INFO] : expected [object Label] to have style: [INFO] : {"apiName":"Ti.UI.Label","backgroundColor":"#ccf","classes":["someClass"],"color":"#000","height":"size","id":"__alloyId2","text":"label 1","top":15,"width":"size"} [INFO] : but found this instead: [INFO] : {"apiName":"Ti.UI.Label","backgroundColor":"#ccf","color":"#000","height":"size","id":"__alloyId2","text":"label 1","top":15,"width":"size"} [INFO] : Error: expected [object Label] to have style: [INFO] : {"apiName":"Ti.UI.Label","backgroundColor":"#ccf","classes":["someClass"],"color":"#000","height":"size","id":"__alloyId2","text":"label 1","top":15,"width":"size"} [INFO] : but found this instead: [INFO] : {"apiName":"Ti.UI.Label","backgroundColor":"#ccf","color":"#000","height":"size","id":"__alloyId2","text":"label 1","top":15,"width":"size"} [INFO] : at new <anonymous> (jasmine.js:63:33) [INFO] : at [object Object].toHaveStyle (jasmine.js:636:33) [INFO] : at [object Object].<anonymous> (runtimeTester.js:73:26) [INFO] : at [object Object].execute (jasmine.js:496:19) [INFO] : at [object Object].next_ (jasmine.js:1130:37) [INFO] : at [object Object].start (jasmine.js:1097:10) [INFO] : at [object Object].execute (jasmine.js:1334:16) [INFO] : at [object Object].next_ (jasmine.js:1130:37) [INFO] : at jasmine.js:1128:106 [INFO] : at [object Object].finish (jasmine.js:1317:19) [INFO] : [INFO] : labels controller #__alloyId4 component has correct style [INFO] : expected [object Label] to have style: [INFO] : {"apiName":"Ti.UI.Label","backgroundColor":"#ccf","classes":["someClass"],"color":"#000","height":"size","id":"__alloyId4","text":"label 3","top":15,"width":"size"} [INFO] : but found this instead: [INFO] : {"apiName":"Ti.UI.Label","backgroundColor":"#ccf","color":"#000","height":"size","id":"__alloyId4","text":"label 3","top":15,"width":"size"} [INFO] : Error: expected [object Label] to have style: [INFO] : {"apiName":"Ti.UI.Label","backgroundColor":"#ccf","classes":["someClass"],"color":"#000","height":"size","id":"__alloyId4","text":"label 3","top":15,"width":"size"} [INFO] : but found this instead: [INFO] : {"apiName":"Ti.UI.Label","backgroundColor":"#ccf","color":"#000","height":"size","id":"__alloyId4","text":"label 3","top":15,"width":"size"} [INFO] : at new <anonymous> (jasmine.js:63:33) [INFO] : at [object Object].toHaveStyle (jasmine.js:636:33) [INFO] : at [object Object].<anonymous> (runtimeTester.js:73:26) [INFO] : at [object Object].execute (jasmine.js:496:19) [INFO] : at [object Object].next_ (jasmine.js:1130:37) [INFO] : at [object Object].start (jasmine.js:1097:10) [INFO] : at [object Object].execute (jasmine.js:1334:16) [INFO] : at [object Object].next_ (jasmine.js:1130:37) [INFO] : at jasmine.js:1128:106 [INFO] : at [object Object].finish (jasmine.js:1317:19) [INFO] : [INFO] : index controller has #index, which has "classes" property [INFO] : expected undefined to contain same elements as [] [INFO] : Error: expected undefined to contain same elements as [] [INFO] : at new <anonymous> (jasmine.js:63:33) [INFO] : at [object Object].toContainSameAs (jasmine.js:636:33) [INFO] : at [object Object].<anonymous> (specs/index.js:42:37) [INFO] : at [object Object].execute (jasmine.js:496:19) [INFO] : at [object Object].next_ (jasmine.js:1130:37) [INFO] : at [object Object].start (jasmine.js:1097:10) [INFO] : at [object Object].execute (jasmine.js:1334:16) [INFO] : at [object Object].next_ (jasmine.js:1130:37) [INFO] : at [object Object].start (jasmine.js:1097:10) [INFO] : at [object Object].execute (jasmine.js:1437:16) [INFO] : [INFO] : index controller has #label, which has "classes" property [INFO] : expected undefined to contain same elements as ["main","shadow"] [INFO] : Error: expected undefined to contain same elements as ["main","shadow"] [INFO] : at new <anonymous> (jasmine.js:63:33) [INFO] : at [object Object].toContainSameAs (jasmine.js:636:33) [INFO] : at [object Object].<anonymous> (specs/index.js:50:37) [INFO] : at [object Object].execute (jasmine.js:496:19) [INFO] : at [object Object].next_ (jasmine.js:1130:37) [INFO] : at [object Object].start (jasmine.js:1097:10) [INFO] : at [object Object].execute (jasmine.js:1334:16) [INFO] : at [object Object].next_ (jasmine.js:1130:37) [INFO] : at [object Object].start (jasmine.js:1097:10) [INFO] : at [object Object].execute (jasmine.js:1437:16) [INFO] : Finished in 0.134 seconds [INFO] : 40 specs, 4 failures [INFO] : ALERT: (KrollRuntimeThread) [690,690] 40 specs, 4 failedI've tested with the latest master and don't get any failures. I tried with all three scenarios and ran the tests twice each. In all cases, I got the same results:
3598 specs, 0 failuresIf they're failing intermittently, I would suspect it's something to do with your computer (processes taking too long and timing out maybe?).Ran the tests again with autostyle set to true, false & none. I did not see any failures this time though. I am not sure why I did see this initially even though it was intermittent. Environment: Appc Studio : 3.3.0.201405121247 Ti SDK : 3.3.0.v20140513191712 Mac OSX : 10.8.5 Alloy : 1.4.0-dev CLI - 3.3.0-dev Samsung Galaxy S4 running android 4.2.2 Nexus 5 - android 4.4.2 iPhone 5s - iOS 7.1.1 Mobileweb
Should this now be reclosed?
Run again the test with: "autoStyle":true "autoStyle":false no "autoStyle" property set in config.json All unit tests pass. TiSDK 3.3.0.v20140522110830 Alloy 1.4.0-alpha4 Appcelerator Studio 3.3.0.201405211748 CLI 3.3.0-alpha5 Closing.
Removing sprint.