uonedb-qt team mailing list archive
-
uonedb-qt team
-
Mailing list archive
-
Message #00349
[Merge] lp:~uonedb-qt/u1db-qt/dateStrings into lp:u1db-qt
Christian Dywan has proposed merging lp:~uonedb-qt/u1db-qt/dateStrings into lp:u1db-qt.
Commit message:
Test storing and retrieving of date strings
Requested reviews:
U1DB Qt developers (uonedb-qt)
Related bugs:
Bug #1482504 in U1DB Qt/ QML: "Putting and then getting dates in a document are altered by u1db"
https://bugs.launchpad.net/u1db-qt/+bug/1482504
For more details, see:
https://code.launchpad.net/~uonedb-qt/u1db-qt/dateStrings/+merge/267371
--
Your team U1DB Qt developers is requested to review the proposed merge of lp:~uonedb-qt/u1db-qt/dateStrings into lp:u1db-qt.
=== modified file 'tests/tst_database.qml'
--- tests/tst_database.qml 2013-08-12 15:28:13 +0000
+++ tests/tst_database.qml 2015-08-07 15:47:56 +0000
@@ -139,6 +139,21 @@
// FIXME compare(myDatabase.last_row_loaded, false)
}
+ function test_7_dates_data() {
+ return [
+ { 'tag': 'memory', path: ':memory:' },
+ { 'tag': 'file', path: 'aDatabaseD' },
+ ]
+ }
+ function test_7_dates (data) {
+ myDatabase.path = data.path
+ spyPathChanged.wait()
+ var appointment = { 'title': "Doctor's appointment", 'date': '2015-08-07T06:15:36.573Z' }
+ myDatabase.putDoc(appointment, 'docDate')
+ var reminder = myDatabase.getDoc('docDate')
+ compare(appointment.date, reminder.date, 'Date string not retrieved correctly')
+ }
+
SignalSpy {
id: spyPathChanged
target: myDatabase
Follow ups