Blame view
node_modules/canonical-json/test/testling.js
604 Bytes
f7563de62
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
var test = require('testling'); test('object key order', function (t) { var object = {} object['a'] = 1 object['b'] = 2 object['c'] = 3 t.deepEqual(object, {a: 1, b: 2, c: 3}); t.end(); }); /* testling result: iexplore/8.0: object key order .................................. 1/1 firefox/8.0: object key order .................................. 1/1 opera/10.0: object key order .................................. 1/1 safari/5.1: object key order .................................. 1/1 total ............................................... 4/4 */ |