Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(7778)

Unified Diff: chrome/test/data/webui/print_preview/print_preview_destination_search_test.js

Issue 2969383003: Print Preview: Finish removing global Javascript functions. (Closed)
Patch Set: Fix test Created 3 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/test/data/webui/print_preview/print_preview_destination_search_test.js
diff --git a/chrome/test/data/webui/print_preview/print_preview_destination_search_test.js b/chrome/test/data/webui/print_preview/print_preview_destination_search_test.js
index e5ea6e424ac0c8542c4a0d93e3c766b031a1ca9b..ededc640020ef2d63744632113e9b63120b560ea 100644
--- a/chrome/test/data/webui/print_preview/print_preview_destination_search_test.js
+++ b/chrome/test/data/webui/print_preview/print_preview_destination_search_test.js
@@ -124,13 +124,7 @@ TEST_F('PrintPreviewDestinationSearchTest', 'Select', function() {
};
setup(function() {
- Mock4JS.clearMocksToVerify();
nativeLayer_ = new print_preview.NativeLayerStub();
- var nativeLayerEventTarget = mock(cr.EventTarget);
- nativeLayer_.setEventTarget(nativeLayerEventTarget.proxy());
- nativeLayerEventTarget.expects(atLeastOnce())
- .addEventListener(ANYTHING, ANYTHING, ANYTHING);
-
invitationStore_ = new print_preview.InvitationStore();
destinationStore_ = new print_preview.DestinationStore(
nativeLayer_, new print_preview.UserInfo(),
@@ -142,10 +136,6 @@ TEST_F('PrintPreviewDestinationSearchTest', 'Select', function() {
destinationSearch_.decorate($('destination-search'));
});
- teardown(function() {
- Mock4JS.verifyAllMocks();
- });
-
test('ResolutionFails', function() {
var destId = "001122DEADBEEF";
if (cr.isChromeOS) {
« no previous file with comments | « chrome/test/data/webui/print_preview/plugin_stub.js ('k') | chrome/test/data/webui/print_preview/print_preview_tests.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698