Opened 9 years ago
Closed 9 years ago
#13881 closed defect (invalid)
ObjectStore test failure
Reported by: | bill | Owned by: | Kris Zyp |
---|---|---|---|
Priority: | high | Milestone: | 1.7 |
Component: | Data | Version: | 1.7.0b1 |
Keywords: | Cc: | ||
Blocked By: | Blocking: |
Description
The ObjectStore? DOH test fails on both IE8 and FF.
ReferenceError: value is not defined ERROR IN: (function testNewItem(t) {var newItem = memoryDataStore.newItem({foo: "bar", id: Math.random()});memoryDataStore.setValue(newItem, "prop1", 1);memoryDataStore.save();memoryDataStore.setValue(newItem, "prop1", 10);memoryDataStore.revert();t.is(memoryDataStore.getValue(newItem, "prop1"), 1);memoryDataStore.fetchItemByIdentity({identity: memoryDataStore.getIdentity(newItem), onItem: function (item) {t.is(memoryDataStore.getValue(item, "foo"), "bar");memoryDataStore.setValue(newItem, "prop2", 2);t.is(memoryDataStore.getValue(item, "prop1"), 1);t.is(memoryDataStore.getValue(item, "prop2"), 2);}});var newItem = memoryDataStore.newItem({foo: "bar", id: Math.random()});memoryDataStore.deleteItem(newItem);memoryDataStore.save();memoryDataStore.fetchItemByIdentity({identity: memoryDataStore.getIdentity(newItem), onItem: function (item) {t.is(item, null);}});}) FAILED test: testNewItem 33 ms
Note: See
TracTickets for help on using
tickets.
Oh, nevermind, this is fixed by [26499], although that causes other problems, see #13715.