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

Unified Diff: remoting/webapp/browser_globals.gtestjs

Issue 12087070: Improve JS unit tests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Added browser_globals.gtestjs Created 7 years, 11 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
« no previous file with comments | « remoting/webapp/all_js_load.gtestjs ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/webapp/browser_globals.gtestjs
diff --git a/remoting/webapp/browser_globals.gtestjs b/remoting/webapp/browser_globals.gtestjs
new file mode 100644
index 0000000000000000000000000000000000000000..0d55b25376e87400c429e8064c3d7e969e0244f8
--- /dev/null
+++ b/remoting/webapp/browser_globals.gtestjs
@@ -0,0 +1,19 @@
+/* Copyright (c) 2013 The Chromium Authors. All rights reserved.
+ * Use of this source code is governed by a BSD-style license that can be
+ * found in the LICENSE file.
+ */
+
+/**
+ * @fileoverview
+ * Definitions for some browser-supplied globals that are not defined in a
+ * gtest environment.
+ */
+
+var XMLHttpRequest = function() {};
+
+var window = {
+ addEventListener: function() {},
+ location: {
+ pathname: ''
+ }
+};
« no previous file with comments | « remoting/webapp/all_js_load.gtestjs ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698