CB-10694 - Update test to reflect merging of CB-9264 fix (removal of duplicate entries)
Project: http://git-wip-us.apache.org/repos/asf/cordova-lib/repo Commit: http://git-wip-us.apache.org/repos/asf/cordova-lib/commit/c9b04237 Tree: http://git-wip-us.apache.org/repos/asf/cordova-lib/tree/c9b04237 Diff: http://git-wip-us.apache.org/repos/asf/cordova-lib/diff/c9b04237 Branch: refs/heads/common-1.1.x Commit: c9b0423769005ca3591ebd90cfe77168148787e0 Parents: 4d4fbac Author: Shazron Abdullah <shaz...@apache.org> Authored: Wed Mar 16 16:45:04 2016 -0700 Committer: Shazron Abdullah <shaz...@apache.org> Committed: Wed Mar 16 16:45:04 2016 -0700 ---------------------------------------------------------------------- cordova-common/spec/util/xml-helpers.spec.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cordova-lib/blob/c9b04237/cordova-common/spec/util/xml-helpers.spec.js ---------------------------------------------------------------------- diff --git a/cordova-common/spec/util/xml-helpers.spec.js b/cordova-common/spec/util/xml-helpers.spec.js index 2138f5c..b0083fd 100644 --- a/cordova-common/spec/util/xml-helpers.spec.js +++ b/cordova-common/spec/util/xml-helpers.spec.js @@ -304,9 +304,8 @@ describe('xml-helpers', function(){ ); xml_helpers.mergeXml(testXml, dstXml, 'ios'); var testElements = dstXml.findall('preference[@name="Orientation"]'); - expect(testElements.length).toEqual(2); - expect(testElements[0].attrib.value).toEqual('default'); - expect(testElements[1].attrib.value).toEqual('all'); + expect(testElements.length).toEqual(1); + expect(testElements[0].attrib.value).toEqual('all'); }); }); }); --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@cordova.apache.org For additional commands, e-mail: commits-h...@cordova.apache.org