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

Unified Diff: third_party/WebKit/LayoutTests/imported/web-platform-tests/html/semantics/embedded-content/the-iframe-element/iframe_sandbox_allow_script.html

Issue 1984023002: Move web-platform-tests to wpt (part 1 of 2) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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: third_party/WebKit/LayoutTests/imported/web-platform-tests/html/semantics/embedded-content/the-iframe-element/iframe_sandbox_allow_script.html
diff --git a/third_party/WebKit/LayoutTests/imported/web-platform-tests/html/semantics/embedded-content/the-iframe-element/iframe_sandbox_allow_script.html b/third_party/WebKit/LayoutTests/imported/web-platform-tests/html/semantics/embedded-content/the-iframe-element/iframe_sandbox_allow_script.html
deleted file mode 100644
index 03646b2f908bc0f3f47b00ec717d390d77d9c221..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/imported/web-platform-tests/html/semantics/embedded-content/the-iframe-element/iframe_sandbox_allow_script.html
+++ /dev/null
@@ -1,39 +0,0 @@
-<!DOCTYPE html>
-<meta charset="uft-8">
-<title>HTML Test: iframe_sandbox_allow_scripts</title>
-<link rel="author" title="Intel" href="http://www.intel.com/">
-<link rel="help" href="https://html.spec.whatwg.org/multipage/#attr-iframe-sandbox">
-<link rel="help" href="https://html.spec.whatwg.org/multipage/#the-iframe-element">
-<script src="../../../../../../resources/testharness.js"></script>
-<script src="../../../../../../resources/testharnessreport.js"></script>
-
-<iframe id="testIframe" src="support/sandbox_allow_script.html" sandbox="allow-same-origin" style="display:none"></iframe>
-<div id="log"></div>
-<script>
- var step1 = false;
- var t = async_test("iframe_sandbox_allow_scripts");
-
- setup({timeout:1000});
- window.addEventListener("message", callback1, false);
-
- function run() {
- window.removeEventListener("message", callback1, false);
- document.getElementById("testIframe").sandbox = "allow-scripts";
- document.getElementById("testIframe").contentWindow.location.reload();
- window.addEventListener("message", callback2, false);
- }
-
- function callback1(e) {
- step1= !step1;
- }
-
- function callback2(e) {
- t.step(function () {
- assert_false(step1, "[allow-scripts] is not set.");
- assert_equals(e.data, "Script executed", "[allow-scripts] is set.");
- });
- t.done();
- }
-
- setTimeout(run, 500);
-</script>

Powered by Google App Engine
This is Rietveld 408576698