1<!DOCTYPE html>
2<!--
3Copyright (c) 2015 The Chromium Authors. All rights reserved.
4Use of this source code is governed by a BSD-style license that can be
5found in the LICENSE file.
6-->
7
8<style>
9.div {
10  font-size: 3.1415em;
11}
12</style>
13
14<div>
15  This is foo.html
16</div>
17
18<script>
19  'use strict';
20  var x = 1;
21  HTMLImportsLoader.loadScript('/error.js');
22  print('File foo.html is loaded');
23  print('x = ' + x);
24</script>
25
26<script>
27  'use strict';
28  var u = 100;
29  (function(global) {
30    /**
31     * Define this method of headless_global so top level file can call this.
32     */
33    global.maybeRaiseExceptionInFoo = function() {
34      maybeRaiseException();
35    };
36  })(this);
37  print('File foo.html\'s second script is loaded');
38  x = x + 1;
39  print('x = ' + x);
40</script>
41
42