From 0006e05643d0d491f9b80e6ffccb3cbff207b944 Mon Sep 17 00:00:00 2001 From: ffxbld Date: Sat, 23 Jun 2012 03:11:21 -0700 Subject: [PATCH 1/2] Automated blocklist update from host bld-centos5-32-vmw-019 --HG-- extra : rebase_source : bf37951c110427184dc5c912b676424b3b532625 --- browser/app/blocklist.xml | 25 +++++++++++++++---------- 1 file changed, 15 insertions(+), 10 deletions(-) diff --git a/browser/app/blocklist.xml b/browser/app/blocklist.xml index 5dd95e6465d..cb8d2265caf 100644 --- a/browser/app/blocklist.xml +++ b/browser/app/blocklist.xml @@ -1,5 +1,5 @@ - + @@ -27,8 +27,10 @@ - - + + + + @@ -72,6 +74,10 @@ + + + + @@ -228,13 +234,8 @@ - - - - - - - + + @@ -322,6 +323,10 @@ + + + + From 3045b785911c48a68dcea0263a577a00e9553ff3 Mon Sep 17 00:00:00 2001 From: Kyle Huey Date: Sat, 23 Jun 2012 07:02:52 -0700 Subject: [PATCH 2/2] Bug 766462: Make some tests wait for all their events. r=me --HG-- extra : rebase_source : a20e771e60c6855a4bad5067c74bada689d7648a --- dom/indexedDB/test/unit/test_create_index.js | 9 +++++++-- dom/indexedDB/test/unit/test_create_objectStore.js | 9 +++++++-- 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/dom/indexedDB/test/unit/test_create_index.js b/dom/indexedDB/test/unit/test_create_index.js index 0056b2a4446..478ef43b25e 100644 --- a/dom/indexedDB/test/unit/test_create_index.js +++ b/dom/indexedDB/test/unit/test_create_index.js @@ -8,7 +8,6 @@ var testGenerator = testSteps(); function testSteps() { const name = this.window ? window.location.pathname : "Splendid Test"; - const description = "My Test Database"; const objectStoreInfo = [ { name: "a", options: { keyPath: "id", autoIncrement: true } }, { name: "b", options: { keyPath: "id", autoIncrement: false } }, @@ -22,9 +21,10 @@ function testSteps() { name: undefined, keyPath: "value", options: { unique: false } }, ]; - let request = mozIndexedDB.open(name, 1, description); + let request = mozIndexedDB.open(name, 1); request.onerror = errorHandler; request.onupgradeneeded = grabEventAndContinueHandler; + request.onsucess = unexpectedSuccessHandler; let event = yield; let db = event.target.result; @@ -115,6 +115,11 @@ function testSteps() } } + request.onsuccess = grabEventAndContinueHandler; + request.onupgradeneeded = unexpectedSuccessHandler; + + event = yield; + finishTest(); yield; } diff --git a/dom/indexedDB/test/unit/test_create_objectStore.js b/dom/indexedDB/test/unit/test_create_objectStore.js index 40fdf975d2f..ef9b3cc6e4a 100644 --- a/dom/indexedDB/test/unit/test_create_objectStore.js +++ b/dom/indexedDB/test/unit/test_create_objectStore.js @@ -8,7 +8,6 @@ var testGenerator = testSteps(); function testSteps() { const name = this.window ? window.location.pathname : "Splendid Test"; - const description = "My Test Database"; const objectStoreInfo = [ { name: "1", options: { keyPath: null } }, { name: "2", options: { keyPath: null, autoIncrement: true } }, @@ -26,9 +25,10 @@ function testSteps() { name: undefined } ]; - let request = mozIndexedDB.open(name, 1, description); + let request = mozIndexedDB.open(name, 1); request.onerror = errorHandler; request.onupgradeneeded = grabEventAndContinueHandler; + request.onsuccess = unexpectedSuccessHandler; let event = yield; let db = event.target.result; @@ -99,6 +99,11 @@ function testSteps() is(found, true, "transaction has correct objectStoreNames list"); } + request.onsuccess = grabEventAndContinueHandler; + request.onupgradeneeded = unexpectedSuccessHandler; + + event = yield; + finishTest(); yield; } \ No newline at end of file