Permalink
Browse files

Fix for segemented view unit tests. Fix datastore requirement. It nee…

…d foundation as foundation has sc.datetime
  • Loading branch information...
1 parent 7a2ba05 commit 6fdb19a3c4b8b651bb085258447529949fda9f20 Juan Pinzon committed Aug 2, 2010
Showing with 8 additions and 8 deletions.
  1. +1 −1 Buildfile
  2. +7 −7 frameworks/desktop/tests/views/segmented/methods.js
View
@@ -29,7 +29,7 @@ config :bootstrap, :required => [], :use_modules => false
config :runtime, :required => []
config :foundation, :required => [:runtime]
-config :datastore, :required => [:runtime]
+config :datastore, :required => [:foundation]
config :statechart, :required => [:runtime]
config :desktop, :required => [:foundation]
config :media, :required => [:desktop]
@@ -53,13 +53,13 @@ test("Check that properties are mapped correctly", function() {
SC.RunLoop.end();
equals(view.get('value'), "Item2", "the second item should be selected.");
var items=view.displayItems();
- equals(items[0].title, "Item1", 'Computed properties should match');
- equals(items[0].value, "Item1", 'Computed properties should match');
- equals(items[0].isEnabled, true, 'Computed properties should match');
- equals(items[0].icon, iconURL, 'Computed properties should match');
- equals(items[0].width, null, 'Computed properties should match');
- equals(items[0].toolTip, null, 'Computed properties should match');
- equals(items[0].index, 0, 'Computed properties should match');
+ equals(items[0][0], "Item1", 'Computed properties should match');
+ equals(items[0][1], "Item1", 'Computed properties should match');
+ equals(items[0][2], true, 'Computed properties should match');
+ equals(items[0][3], iconURL, 'Computed properties should match');
+ equals(items[0][4], null, 'Computed properties should match');
+ equals(items[0][5], null, 'Computed properties should match');
+ equals(items[0][6], 0, 'Computed properties should match');
var firstItemEvent = SC.Event.simulateEvent(elem, 'mousedown', { pageX: rect1.left + 1, pageY: rect1.top + 1 });
view.mouseDown(firstItemEvent);

0 comments on commit 6fdb19a

Please sign in to comment.