From 13a98bf3aad6dbbc20b5525f69c0d533d90c31ba Mon Sep 17 00:00:00 2001 From: Amod Narvekar Date: Thu, 17 Apr 2014 16:43:03 -0400 Subject: [PATCH] Bug 552025 - Remove the instances of nsINavHistoryResultObserver.containerOpened/Closed. r=mak --- toolkit/components/places/tests/head_common.js | 2 -- .../places/tests/unit/test_nsINavHistoryViewer.js | 6 ------ 2 files changed, 8 deletions(-) diff --git a/toolkit/components/places/tests/head_common.js b/toolkit/components/places/tests/head_common.js index 14a07e5c62e2..0de34a565fec 100644 --- a/toolkit/components/places/tests/head_common.js +++ b/toolkit/components/places/tests/head_common.js @@ -849,8 +849,6 @@ function NavHistoryResultObserver() {} NavHistoryResultObserver.prototype = { batching: function () {}, - containerClosed: function () {}, - containerOpened: function () {}, containerStateChanged: function () {}, invalidateContainer: function () {}, nodeAnnotationChanged: function () {}, diff --git a/toolkit/components/places/tests/unit/test_nsINavHistoryViewer.js b/toolkit/components/places/tests/unit/test_nsINavHistoryViewer.js index 377274b7cf68..ea5023c0fc5e 100644 --- a/toolkit/components/places/tests/unit/test_nsINavHistoryViewer.js +++ b/toolkit/components/places/tests/unit/test_nsINavHistoryViewer.js @@ -97,7 +97,6 @@ add_test(function check_history_query() { var root = result.root; root.containerOpen = true; - // nsINavHistoryResultObserver.containerOpened do_check_neq(resultObserver.openedContainer, null); // nsINavHistoryResultObserver.nodeInserted @@ -148,7 +147,6 @@ add_test(function check_history_query() { }, null); do_check_false(resultObserver.inBatchMode); - // nsINavHistoryResultObserver.containerClosed root.containerOpen = false; do_check_eq(resultObserver.closedContainer, resultObserver.openedContainer); result.removeObserver(resultObserver); @@ -168,7 +166,6 @@ add_test(function check_bookmarks_query() { var root = result.root; root.containerOpen = true; - // nsINavHistoryResultObserver.containerOpened do_check_neq(resultObserver.openedContainer, null); // nsINavHistoryResultObserver.nodeInserted @@ -217,7 +214,6 @@ add_test(function check_bookmarks_query() { }, null); do_check_false(resultObserver.inBatchMode); - // nsINavHistoryResultObserver.containerClosed root.containerOpen = false; do_check_eq(resultObserver.closedContainer, resultObserver.openedContainer); result.removeObserver(resultObserver); @@ -234,7 +230,6 @@ add_test(function check_mixed_query() { var root = result.root; root.containerOpen = true; - // nsINavHistoryResultObserver.containerOpened do_check_neq(resultObserver.openedContainer, null); // nsINavHistoryResultObserver.batching @@ -252,7 +247,6 @@ add_test(function check_mixed_query() { }, null); do_check_false(resultObserver.inBatchMode); - // nsINavHistoryResultObserver.containerClosed root.containerOpen = false; do_check_eq(resultObserver.closedContainer, resultObserver.openedContainer); result.removeObserver(resultObserver);