Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1024)

Unified Diff: chrome/test/data/fileurl_universalaccess.html

Issue 201048: Support running tests under LayoutTests/http/tests/local as local file, in or... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/test/data/fileurl_universalaccess.html
===================================================================
--- chrome/test/data/fileurl_universalaccess.html (revision 0)
+++ chrome/test/data/fileurl_universalaccess.html (revision 0)
@@ -0,0 +1,19 @@
+<html>
+<body onload="test();">
+<script>
+function test() {
+ var status;
+ try {
+ var d = frames[0].document.open();
+ status = "Allowed";
+ d.close();
+ } catch (e) {
+ status = "Disallowed";
+ }
+ document.cookie = "status=" + status;
+}
+</script>
+<div id=result></div>
+<iframe src="data:text/html,"></iframe>
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698