Index: chrome/test/data/nacl/extension_validation_cache/extension_validation_cache.js |
diff --git a/chrome/test/data/nacl/extension_validation_cache/extension_validation_cache.js b/chrome/test/data/nacl/extension_validation_cache/extension_validation_cache.js |
new file mode 100644 |
index 0000000000000000000000000000000000000000..1913f2299db4f28c913b573526cf30ef91cacd3b |
--- /dev/null |
+++ b/chrome/test/data/nacl/extension_validation_cache/extension_validation_cache.js |
@@ -0,0 +1,24 @@ |
+// Copyright 2014 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+function create(manifest_url) { |
+ var embed = load_util.embed(manifest_url); |
+ |
+ embed.addEventListener("load", function(evt) { |
+ load_util.shutdown("1 test passed.", true); |
+ }, true); |
+ |
+ embed.addEventListener("error", function(evt) { |
+ load_util.log("Load error: " + embed.lastError); |
+ load_util.shutdown("1 test failed.", false); |
+ }, true); |
+ |
+ document.body.appendChild(embed); |
+} |
+ |
+function documentLoaded() { |
+ create('extension_validation_cache.nmf'); |
+} |
+ |
+document.addEventListener('DOMContentLoaded', documentLoaded); |