OLD | NEW |
(Empty) | |
| 1 // Copyright 2014 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 function create(manifest_url) { |
| 6 var embed = load_util.embed(manifest_url); |
| 7 |
| 8 embed.addEventListener("load", function(evt) { |
| 9 load_util.shutdown("1 test passed.", true); |
| 10 }, true); |
| 11 |
| 12 embed.addEventListener("error", function(evt) { |
| 13 load_util.log("Load error: " + embed.lastError); |
| 14 load_util.shutdown("1 test failed.", false); |
| 15 }, true); |
| 16 |
| 17 document.body.appendChild(embed); |
| 18 } |
| 19 |
| 20 function documentLoaded() { |
| 21 create('extension_validation_cache.nmf'); |
| 22 } |
| 23 |
| 24 document.addEventListener('DOMContentLoaded', documentLoaded); |
OLD | NEW |