1 // Copyright 2015 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 chrome
.test
.assertTrue(chrome
.hasOwnProperty('runtime'));
7 var iframe
= document
.createElement('iframe');
8 iframe
.src
= 'http://mock.http/';
9 iframe
.onload = function() {
10 chrome
.test
.assertTrue(chrome
.test
.getModuleSystem(window
) instanceof Object
);
11 chrome
.test
.assertEq(undefined,
12 chrome
.test
.getModuleSystem(iframe
.contentWindow
));
13 chrome
.test
.notifyPass();
15 document
.body
.appendChild(iframe
);