Index: third_party/WebKit/LayoutTests/http/tests/security/powerfulFeatureRestrictions/old-powerful-features-on-insecure-origin.html |
diff --git a/third_party/WebKit/LayoutTests/http/tests/security/powerfulFeatureRestrictions/old-powerful-features-on-insecure-origin.html b/third_party/WebKit/LayoutTests/http/tests/security/powerfulFeatureRestrictions/old-powerful-features-on-insecure-origin.html |
index 31cd796762209439afc72f6c493de1148bb68f25..fc366bdf538e432e9686270854c0f1ab4f0f93d4 100644 |
--- a/third_party/WebKit/LayoutTests/http/tests/security/powerfulFeatureRestrictions/old-powerful-features-on-insecure-origin.html |
+++ b/third_party/WebKit/LayoutTests/http/tests/security/powerfulFeatureRestrictions/old-powerful-features-on-insecure-origin.html |
@@ -1,5 +1,5 @@ |
<!DOCTYPE html> |
-<html> |
+<html manifest="/security/powerfulFeatureRestrictions/resources/simple.manifest"> |
<head> |
<title>Old Powerful Features on an Insecure Origin</title> |
</head> |
@@ -80,6 +80,22 @@ if (window.location.origin != get_host_info().UNAUTHENTICATED_ORIGIN) { |
assert_equals(error.message, "Only secure origins are allowed (see: https://goo.gl/Y0ZkNV)."); |
}); |
}, 'navigator.mediaDevices.getUserMedia'); |
+ |
+ async_test(function() { |
Yoav Weiss
2016/02/23 22:09:54
So, just to make sure that I understand this test:
jww
2016/02/23 23:51:42
Yes, exactly. It also makes sure we're testing the
|
+ var cached = this.step_func(function() { |
+ var test = this; |
+ fetch("/security/powerfulFeatureRestrictions/resources/simple.txt") |
+ .then(this.step_func(function(response) { |
+ assert_equals(response.status, 200); |
+ response.text().then(this.step_func_done(function(data) { |
+ assert_equals(data, "Hello, World!"); |
+ })); |
+ })) |
+ .catch(this.unreached_func("fetch() for cachable resource unexpectedly failed")); |
+ }); |
+ |
+ applicationCache.addEventListener('cached', cached, false); |
+ }, 'appcache'); |
} |
</script> |
</body> |