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..4f430872306f028b5bc122ad7a07c999b65e8118 |
--- /dev/null |
+++ b/chrome/test/data/nacl/extension_validation_cache/extension_validation_cache.js |
@@ -0,0 +1,20 @@ |
+function create(manifest_url) { |
teravest
2014/05/21 16:49:42
Do you need a copyright statement for this file?
jvoung (off chromium)
2014/05/21 21:10:56
Done.
|
+ 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); |