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

Unified Diff: chrome/test/data/translate/pseudo_main.js

Issue 13825006: Translate: browser test to verify whole translate process (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: win build fix 2 Created 7 years, 8 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 | « chrome/test/data/translate/pseudo_element_main.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/data/translate/pseudo_main.js
diff --git a/chrome/test/data/translate/pseudo_main.js b/chrome/test/data/translate/pseudo_main.js
new file mode 100644
index 0000000000000000000000000000000000000000..7da644206d3cbe8baec0a932dda709252bca2887
--- /dev/null
+++ b/chrome/test/data/translate/pseudo_main.js
@@ -0,0 +1,21 @@
+// Copyright 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.
+
+div_log = function (message) {
+ var div = document.getElementById('log');
+ var element = document.createElement('pre');
+ element.innerText = message;
+ div.appendChild(element);
+}
+if (typeof world != 'undefined') {
+ div_log('v8 isolation doesn\'t work');
+ document.title = 'FAIL';
+ return;
+}
+div_log('The first script pseudo_main.js is loaded');
+div_log('Loading the second script pseudo_element_main.js ...');
+var head = document.getElementsByTagName('head')[0];
+var script = document.createElement('script');
+script.src = element_main_script_url;
+head.appendChild(script);
« no previous file with comments | « chrome/test/data/translate/pseudo_element_main.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698