OLD | NEW |
(Empty) | |
| 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. |
| 4 |
| 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); |
| 10 } |
| 11 if (typeof world != 'undefined') { |
| 12 div_log('v8 isolation doesn\'t work'); |
| 13 document.title = 'FAIL'; |
| 14 return; |
| 15 } |
| 16 div_log('The first script pseudo_main.js is loaded'); |
| 17 div_log('Loading the second script pseudo_element_main.js ...'); |
| 18 var head = document.getElementsByTagName('head')[0]; |
| 19 var script = document.createElement('script'); |
| 20 script.src = element_main_script_url; |
| 21 head.appendChild(script); |
OLD | NEW |