1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 div_log = function (message) {
6 var div = document.getElementById('log');
7 var element = document.createElement('pre');
8 element.innerText = message;
9 div.appendChild(element);
11 if (typeof world != 'undefined') {
12 div_log('v8 isolation doesn\'t work');
13 document.title = 'FAIL';
16 div_log('The first script pseudo_main.js is loaded');
17 div_log('Loading the second script pseudo_element_main.js ...');
18 cr.googleTranslate.onLoadJavascript(element_main_script_url);