| Tests WI.ObjectStore.prototype.putObject. |
| |
| |
| == Running test suite: WI.ObjectStore.prototype.putObject |
| -- Running test case: WI.ObjectStore.prototype.putObject.NoParameters |
| PASS: Should produce an exception. |
| TypeError: undefined is not an object (evaluating 'object.toJSON') |
| [] |
| |
| -- Running test case: WI.ObjectStore.prototype.putObject.WithoutKeyPathOrAutoIncrement |
| PASS: Should produce an exception. |
| DataError: Failed to store record in an IDBObjectStore: The object store uses out-of-line keys and has no key generator and the key parameter was not provided. |
| [] |
| |
| -- Running test case: WI.ObjectStore.prototype.putObject.KeyPathMissingOnObjectWithoutAutoIncrement |
| PASS: Should produce an exception. |
| DataError: Failed to store record in an IDBObjectStore: Evaluating the object store's key path did not yield a value. |
| [] |
| |
| -- Running test case: WI.ObjectStore.prototype.putObject.KeyPathSetOnObjectWithoutAutoIncrement |
| putObject: [{"KeyPathSetOnObjectWithoutAutoIncrement":42,"a":1}] |
| putObject: [{"KeyPathSetOnObjectWithoutAutoIncrement":42,"a":1},{"KeyPathSetOnObjectWithoutAutoIncrement":99,"b":2}] |
| [{"KeyPathSetOnObjectWithoutAutoIncrement":42,"a":1},{"KeyPathSetOnObjectWithoutAutoIncrement":99,"b":2}] |
| |
| -- Running test case: WI.ObjectStore.prototype.putObject.KeyPathMissingOnObjectWithAutoIncrement |
| putObject: [{"a":1,"KeyPathMissingOnObjectWithAutoIncrement":1}] |
| putObject: [{"a":1,"KeyPathMissingOnObjectWithAutoIncrement":1},{"b":2,"KeyPathMissingOnObjectWithAutoIncrement":2}] |
| [{"a":1,"KeyPathMissingOnObjectWithAutoIncrement":1},{"b":2,"KeyPathMissingOnObjectWithAutoIncrement":2}] |
| |
| -- Running test case: WI.ObjectStore.prototype.putObject.KeyPathSetOnObjectWithAutoIncrement |
| putObject: [{"KeyPathSetOnObjectWithAutoIncrement":42,"a":1}] |
| putObject: [{"KeyPathSetOnObjectWithAutoIncrement":42,"a":1},{"KeyPathSetOnObjectWithAutoIncrement":99,"b":2}] |
| [{"KeyPathSetOnObjectWithAutoIncrement":42,"a":1},{"KeyPathSetOnObjectWithAutoIncrement":99,"b":2}] |
| |
| -- Running test case: WI.ObjectStore.prototype.putObject.AutoIncrementWithoutKeyPath |
| putObject: [{"a":1}] |
| putObject: [{"a":1},{"b":2}] |
| [{"a":1},{"b":2}] |
| |
| -- Running test case: WI.ObjectStore.prototype.putObject.KeyPathSetOnObjectWithoutAutoIncrement.Sub |
| putObject: [{"KeyPathSetOnObjectWithoutAutoIncrement":{"Sub":42},"a":1}] |
| putObject: [{"KeyPathSetOnObjectWithoutAutoIncrement":{"Sub":42},"a":1},{"KeyPathSetOnObjectWithoutAutoIncrement":{"Sub":99},"b":2}] |
| [{"KeyPathSetOnObjectWithoutAutoIncrement":{"Sub":42},"a":1},{"KeyPathSetOnObjectWithoutAutoIncrement":{"Sub":99},"b":2}] |
| |
| -- Running test case: WI.ObjectStore.prototype.putObject.KeyPathMissingOnObjectWithAutoIncrement.Sub |
| putObject: [{"a":1,"KeyPathMissingOnObjectWithAutoIncrement":{"Sub":1}}] |
| putObject: [{"a":1,"KeyPathMissingOnObjectWithAutoIncrement":{"Sub":1}},{"b":2,"KeyPathMissingOnObjectWithAutoIncrement":{"Sub":2}}] |
| [{"a":1,"KeyPathMissingOnObjectWithAutoIncrement":{"Sub":1}},{"b":2,"KeyPathMissingOnObjectWithAutoIncrement":{"Sub":2}}] |
| |
| -- Running test case: WI.ObjectStore.prototype.putObject.KeyPathSetOnObjectWithAutoIncrement.Sub |
| putObject: [{"KeyPathSetOnObjectWithAutoIncrement":{"Sub":42},"a":1}] |
| putObject: [{"KeyPathSetOnObjectWithAutoIncrement":{"Sub":42},"a":1},{"KeyPathSetOnObjectWithAutoIncrement":{"Sub":99},"b":2}] |
| [{"KeyPathSetOnObjectWithAutoIncrement":{"Sub":42},"a":1},{"KeyPathSetOnObjectWithAutoIncrement":{"Sub":99},"b":2}] |
| |