gecko/services/sync/tests/unit/test_engine_lastSync.js
Edward Lee ad5f01ba04 Bug 493816 - Timestamps need to be saved as string prefs
Internally store .lastSync as a string but keep exposing set/getters as float values. parseFloat takes both strings and numbers and gives a number.

--HG--
extra : rebase_source : b657dd3f732b9f3b3b0ef208ee53e799aa87d2c6
2009-06-16 17:22:59 -07:00

9 lines
226 B
JavaScript

Cu.import("resource://weave/engines.js");
function run_test() {
// Make sure storing floats for lastSync stay as floats
let engine = new SyncEngine();
engine.lastSync = 123.45;
do_check_eq(engine.lastSync, 123.45);
}