This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Couch Master | |
suite2 test.replication.js-http-http | |
✓ #3999-1 should not start over if last_seq mismatches (1855ms) | |
✓ #3999-2 should start over if no common session is found (1664ms) | |
✓ #3999-3 should not start over if common session is found (1649ms) | |
✓ #3999-4 should "upgrade" an old checkpoint (1654ms) | |
// Couch 1.6 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
unit-test-firefox: | |
./tests/travis_ci/unit-tests-in-firefox/install | |
./tests/travis_ci/unit-tests-in-firefox/before_script | |
./tests/travis_ci/unit-tests-in-firefox/script |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
check-gjslint-installed: | |
@if ! command -v gjslint >/dev/null 2>&1; then \ | |
sudo easy_install $(CLOSURE_URL); \ | |
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var replicate = db.replicate.from(remote, { | |
filter: function(doc, req) { | |
return doc.integer % req.query.divisor === 0; | |
} | |
query_params: {divisor: 2} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/Volumes/firefoxos/mozilla-central-git (master)$ python ./testing/mochitest/runtests.py | |
Traceback (most recent call last): | |
File "./testing/mochitest/runtests.py", line 17, in <module> | |
import mozcrash | |
ImportError: No module named mozcrash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
it('changes are not duplicated', function (done) { | |
var db = new PouchDB(dbs.name); | |
var called = 0; | |
var changes = db.changes({ | |
since: 'latest', | |
continuous: true, | |
onChange: function () { | |
called++; | |
} | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
var utils = require('../utils'); | |
var merge = require('../merge'); | |
var errors = require('../deps/errors'); | |
function LocalPouch(opts, callback) { | |
var api = {}; | |
utils.call(callback, null, api); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// How it should be written | |
remote.bulkDocs({docs: docs}); | |
db.replicate.from(remote); | |
var docs = db.allDocs(); | |
res.total_rows.should.equal(num); | |
// No error handling | |
remote.bulkDocs({ docs: docs }, function (err, info) { | |
db.replicate.from(remote, {}, function () { | |
db.allDocs(function (err, res) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
describe('dummy-test', function () { | |
beforeEach(function (done) { | |
var err = { | |
status: 404, | |
name: 'not_found', | |
message: 'missing', | |
error: true | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2014-02-25 08:00:19,894 - Request started: OPTIONS http://localhost:2020/test_changes/?_nonce=xZifgyGnqn4vz4P0 | |
2014-02-25 08:00:19,897 - OPTIONS http://localhost:2020/test_changes/?_nonce=xZifgyGnqn4vz4P0 -> 200 (2ms, 0 bytes) | |
2014-02-25 08:00:20,280 - Request started: GET http://localhost:2020/test_changes/?_nonce=xZifgyGnqn4vz4P0 | |
2014-02-25 08:00:20,289 - GET http://localhost:2020/test_changes/?_nonce=xZifgyGnqn4vz4P0 -> 404 (7ms, 44 bytes) | |
2014-02-25 08:00:20,496 - Request started: PUT http://localhost:2020/test_changes/ | |
2014-02-25 08:00:20,506 - PUT http://localhost:2020/test_changes/ -> 201 (9ms, 12 bytes) | |
2014-02-25 08:00:20,891 - Request started: OPTIONS http://localhost:2020/_uuids?count=10&_nonce=63JsFIp9ZbIfkdmL | |
2014-02-25 08:00:20,894 - OPTIONS http://localhost:2020/_uuids?count=10&_nonce=63JsFIp9ZbIfkdmL -> 200 (4ms, 0 bytes) | |
2014-02-25 08:00:21,348 - Request started: GET http://localhost:2020/_uuids?count=10&_nonce=63JsFIp9ZbIfkdmL | |
2014-02-25 08:00:21,351 - GET http://localhost:2020/_uuids?count= |
OlderNewer