Bug 652294 - Adding diagnostics to test_hashcompleter.js for intermittent orange. (test only)

This commit is contained in:
Mehdi Mulani 2011-04-22 19:04:57 -07:00
parent 3b5f6cea92
commit ef7343e000

View File

@ -264,6 +264,16 @@ function callback(completion) {
}
callback.prototype = {
completion: function completion(hash, table, chunkId, trusted) {
// This check was added as part of diagnostics for bug 652294.
if (!this._completion.expectCompletion) {
dump("Did not expect a completion for this result. Provided values:\n" +
"hash: " + JSON.stringify(hash) + "\ntable: " + table + "chunkId: " +
chunkId + "\n");
dump("Actual values:\nhash: " + JSON.stringify(this._completion.hash) +
"\ntable: " + this._completion.table + "\nchunkId: " +
this.completion.chunkId + "\n");
}
do_check_true(this._completion.expectCompletion);
if (this._completion.multipleCompletions) {