From 37071881e21de91d07d94c5471a984a7777410dd Mon Sep 17 00:00:00 2001 From: "mkwst@chromium.org" Date: Sat, 16 Mar 2013 16:43:39 +0000 Subject: [PATCH] fast/frames/sandboxed-iframe-scripting is flakey https://bugs.webkit.org/show_bug.cgi?id=112482 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reviewed by Simon Fraser. Tests that rely on multiple 'iframe' elements loading in a specific order are a Bad Idea™. This patch splits 'fast/frames/sandboxed-iframe-scripting.html' out into five tests, and changes two of them (#2 and #4) to use message passing in order to test in a way that 'js-test-{pre,post}' can cleanly report. * fast/frames/sandboxed-iframe-scripting-01-expected.txt: Added. * fast/frames/sandboxed-iframe-scripting-01.html: Added. * fast/frames/sandboxed-iframe-scripting-02-expected.txt: Added. * fast/frames/sandboxed-iframe-scripting-02.html: Added. * fast/frames/sandboxed-iframe-scripting-03-expected.txt: Added. * fast/frames/sandboxed-iframe-scripting-03.html: Added. * fast/frames/sandboxed-iframe-scripting-04-expected.txt: Added. * fast/frames/sandboxed-iframe-scripting-04.html: Added. * fast/frames/sandboxed-iframe-scripting-05-expected.txt: Added. * fast/frames/sandboxed-iframe-scripting-05.html: Added. * fast/frames/sandboxed-iframe-scripting-expected.txt: Removed. * fast/frames/sandboxed-iframe-scripting.html: Removed. * platform/mac/TestExpectations: Remove the skipped test, since it no longer exists. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@145993 268f45cc-cd09-0410-ab3c-d52691b4dbfc --- LayoutTests/ChangeLog | 28 ++++++++++++ ...sandboxed-iframe-scripting-01-expected.txt | 11 +++++ .../frames/sandboxed-iframe-scripting-01.html | 25 +++++++++++ ...sandboxed-iframe-scripting-02-expected.txt | 12 +++++ .../frames/sandboxed-iframe-scripting-02.html | 35 +++++++++++++++ ...sandboxed-iframe-scripting-03-expected.txt | 12 +++++ .../frames/sandboxed-iframe-scripting-03.html | 27 +++++++++++ ...sandboxed-iframe-scripting-04-expected.txt | 12 +++++ .../frames/sandboxed-iframe-scripting-04.html | 38 ++++++++++++++++ ...sandboxed-iframe-scripting-05-expected.txt | 11 +++++ .../frames/sandboxed-iframe-scripting-05.html | 27 +++++++++++ .../sandboxed-iframe-scripting-expected.txt | 14 ------ .../frames/sandboxed-iframe-scripting.html | 45 ------------------- LayoutTests/platform/mac/TestExpectations | 2 - 14 files changed, 238 insertions(+), 61 deletions(-) create mode 100644 LayoutTests/fast/frames/sandboxed-iframe-scripting-01-expected.txt create mode 100644 LayoutTests/fast/frames/sandboxed-iframe-scripting-01.html create mode 100644 LayoutTests/fast/frames/sandboxed-iframe-scripting-02-expected.txt create mode 100644 LayoutTests/fast/frames/sandboxed-iframe-scripting-02.html create mode 100644 LayoutTests/fast/frames/sandboxed-iframe-scripting-03-expected.txt create mode 100644 LayoutTests/fast/frames/sandboxed-iframe-scripting-03.html create mode 100644 LayoutTests/fast/frames/sandboxed-iframe-scripting-04-expected.txt create mode 100644 LayoutTests/fast/frames/sandboxed-iframe-scripting-04.html create mode 100644 LayoutTests/fast/frames/sandboxed-iframe-scripting-05-expected.txt create mode 100644 LayoutTests/fast/frames/sandboxed-iframe-scripting-05.html delete mode 100644 LayoutTests/fast/frames/sandboxed-iframe-scripting-expected.txt delete mode 100644 LayoutTests/fast/frames/sandboxed-iframe-scripting.html diff --git a/LayoutTests/ChangeLog b/LayoutTests/ChangeLog index 948869403128a..5d6b9f9fc010e 100644 --- a/LayoutTests/ChangeLog +++ b/LayoutTests/ChangeLog @@ -1,3 +1,31 @@ +2013-03-16 Mike West + + fast/frames/sandboxed-iframe-scripting is flakey + https://bugs.webkit.org/show_bug.cgi?id=112482 + + Reviewed by Simon Fraser. + + Tests that rely on multiple 'iframe' elements loading in a specific + order are a Bad Idea™. This patch splits + 'fast/frames/sandboxed-iframe-scripting.html' out into five tests, and + changes two of them (#2 and #4) to use message passing in order to + test in a way that 'js-test-{pre,post}' can cleanly report. + + * fast/frames/sandboxed-iframe-scripting-01-expected.txt: Added. + * fast/frames/sandboxed-iframe-scripting-01.html: Added. + * fast/frames/sandboxed-iframe-scripting-02-expected.txt: Added. + * fast/frames/sandboxed-iframe-scripting-02.html: Added. + * fast/frames/sandboxed-iframe-scripting-03-expected.txt: Added. + * fast/frames/sandboxed-iframe-scripting-03.html: Added. + * fast/frames/sandboxed-iframe-scripting-04-expected.txt: Added. + * fast/frames/sandboxed-iframe-scripting-04.html: Added. + * fast/frames/sandboxed-iframe-scripting-05-expected.txt: Added. + * fast/frames/sandboxed-iframe-scripting-05.html: Added. + * fast/frames/sandboxed-iframe-scripting-expected.txt: Removed. + * fast/frames/sandboxed-iframe-scripting.html: Removed. + * platform/mac/TestExpectations: + Remove the skipped test, since it no longer exists. + 2013-03-16 Jochen Eisinger Update test expectations for content shell. diff --git a/LayoutTests/fast/frames/sandboxed-iframe-scripting-01-expected.txt b/LayoutTests/fast/frames/sandboxed-iframe-scripting-01-expected.txt new file mode 100644 index 0000000000000..2f8b39b384247 --- /dev/null +++ b/LayoutTests/fast/frames/sandboxed-iframe-scripting-01-expected.txt @@ -0,0 +1,11 @@ +Verify that sandboxed frames with sandbox='allow-scripts' can execute script. + +On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE". + + +PASS disallowedExecuted is 0 +PASS allowedExecuted is 1 +PASS successfullyParsed is true + +TEST COMPLETE + diff --git a/LayoutTests/fast/frames/sandboxed-iframe-scripting-01.html b/LayoutTests/fast/frames/sandboxed-iframe-scripting-01.html new file mode 100644 index 0000000000000..66686687c76be --- /dev/null +++ b/LayoutTests/fast/frames/sandboxed-iframe-scripting-01.html @@ -0,0 +1,25 @@ + + + + + + + + + + + + diff --git a/LayoutTests/fast/frames/sandboxed-iframe-scripting-02-expected.txt b/LayoutTests/fast/frames/sandboxed-iframe-scripting-02-expected.txt new file mode 100644 index 0000000000000..ce7f208bf0b71 --- /dev/null +++ b/LayoutTests/fast/frames/sandboxed-iframe-scripting-02-expected.txt @@ -0,0 +1,12 @@ +ALERT: PASS: Executed script in data URL +Verify that sandboxed frames with sandbox='allow-scripts' can execute script from data: URLs. + +On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE". + + +PASS disallowedExecuted is 0 +PASS allowedExecuted is 1 +PASS successfullyParsed is true + +TEST COMPLETE + diff --git a/LayoutTests/fast/frames/sandboxed-iframe-scripting-02.html b/LayoutTests/fast/frames/sandboxed-iframe-scripting-02.html new file mode 100644 index 0000000000000..56a1dc8673f74 --- /dev/null +++ b/LayoutTests/fast/frames/sandboxed-iframe-scripting-02.html @@ -0,0 +1,35 @@ + + + + + + + + + + + + + + diff --git a/LayoutTests/fast/frames/sandboxed-iframe-scripting-03-expected.txt b/LayoutTests/fast/frames/sandboxed-iframe-scripting-03-expected.txt new file mode 100644 index 0000000000000..4aeb68c976c37 --- /dev/null +++ b/LayoutTests/fast/frames/sandboxed-iframe-scripting-03-expected.txt @@ -0,0 +1,12 @@ +CONSOLE MESSAGE: Blocked script execution in 'about:blank' because the document's frame is sandboxed and the 'allow-scripts' permission is not set. +Verify that sandboxed frames without sandbox='allow-scripts' cannot execute script. + +On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE". + + +PASS disallowedExecuted is 0 +PASS allowedExecuted is 0 +PASS successfullyParsed is true + +TEST COMPLETE + diff --git a/LayoutTests/fast/frames/sandboxed-iframe-scripting-03.html b/LayoutTests/fast/frames/sandboxed-iframe-scripting-03.html new file mode 100644 index 0000000000000..3f49e37260d87 --- /dev/null +++ b/LayoutTests/fast/frames/sandboxed-iframe-scripting-03.html @@ -0,0 +1,27 @@ + + + + + + + + + + + + + + diff --git a/LayoutTests/fast/frames/sandboxed-iframe-scripting-04-expected.txt b/LayoutTests/fast/frames/sandboxed-iframe-scripting-04-expected.txt new file mode 100644 index 0000000000000..9df93466b97d7 --- /dev/null +++ b/LayoutTests/fast/frames/sandboxed-iframe-scripting-04-expected.txt @@ -0,0 +1,12 @@ +CONSOLE MESSAGE: Blocked script execution in 'data:text/html,' because the document's frame is sandboxed and the 'allow-scripts' permission is not set. +Verify that sandboxed frames without sandbox='allow-scripts' cannot execute script from data: URLs. + +On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE". + + +PASS disallowedExecuted is 0 +PASS allowedExecuted is 0 +PASS successfullyParsed is true + +TEST COMPLETE + diff --git a/LayoutTests/fast/frames/sandboxed-iframe-scripting-04.html b/LayoutTests/fast/frames/sandboxed-iframe-scripting-04.html new file mode 100644 index 0000000000000..8186ef95e8c63 --- /dev/null +++ b/LayoutTests/fast/frames/sandboxed-iframe-scripting-04.html @@ -0,0 +1,38 @@ + + + + + + + + + + + + + + + + diff --git a/LayoutTests/fast/frames/sandboxed-iframe-scripting-05-expected.txt b/LayoutTests/fast/frames/sandboxed-iframe-scripting-05-expected.txt new file mode 100644 index 0000000000000..a85e995b7d278 --- /dev/null +++ b/LayoutTests/fast/frames/sandboxed-iframe-scripting-05-expected.txt @@ -0,0 +1,11 @@ +Verify that adding a sandbox attribute at runtime does not effect the iframe's current state. + +On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE". + + +PASS disallowedExecuted is 0 +PASS allowedExecuted is 2 +PASS successfullyParsed is true + +TEST COMPLETE + diff --git a/LayoutTests/fast/frames/sandboxed-iframe-scripting-05.html b/LayoutTests/fast/frames/sandboxed-iframe-scripting-05.html new file mode 100644 index 0000000000000..e336c367dda7b --- /dev/null +++ b/LayoutTests/fast/frames/sandboxed-iframe-scripting-05.html @@ -0,0 +1,27 @@ + + + + + + + + + + + + + + + + diff --git a/LayoutTests/fast/frames/sandboxed-iframe-scripting-expected.txt b/LayoutTests/fast/frames/sandboxed-iframe-scripting-expected.txt deleted file mode 100644 index 9ad96b47e357d..0000000000000 --- a/LayoutTests/fast/frames/sandboxed-iframe-scripting-expected.txt +++ /dev/null @@ -1,14 +0,0 @@ -CONSOLE MESSAGE: Blocked script execution in 'about:blank' because the document's frame is sandboxed and the 'allow-scripts' permission is not set. -ALERT: PASS: Executed script in data URL -CONSOLE MESSAGE: Blocked script execution in 'data:text/html,' because the document's frame is sandboxed and the 'allow-scripts' permission is not set. -Verify that sandboxed frames with sandbox="allow-scripts" can execute scripts, but other sandboxed frames cannot. Also verify that adding a sandbox attribute at runtime does not effect the current state of the iframe. - -On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE". - - -PASS disallowedExecuted is 0 -PASS allowedExecuted is 3 -PASS successfullyParsed is true - -TEST COMPLETE - diff --git a/LayoutTests/fast/frames/sandboxed-iframe-scripting.html b/LayoutTests/fast/frames/sandboxed-iframe-scripting.html deleted file mode 100644 index 7f3105258aaf1..0000000000000 --- a/LayoutTests/fast/frames/sandboxed-iframe-scripting.html +++ /dev/null @@ -1,45 +0,0 @@ - - - - - - - - - - - - - - - - - - diff --git a/LayoutTests/platform/mac/TestExpectations b/LayoutTests/platform/mac/TestExpectations index 00dccaf355c84..33fdad7adc72a 100644 --- a/LayoutTests/platform/mac/TestExpectations +++ b/LayoutTests/platform/mac/TestExpectations @@ -1350,8 +1350,6 @@ webkit.org/b/104954 http/tests/canvas/canvas-slow-font-loading.html [ ImageOnlyF webkit.org/b/104962 platform/mac/fast/loader/file-url-mimetypes-2.html [ Failure ] -webkit.org/b/112482 fast/frames/sandboxed-iframe-scripting.html [ Failure Pass ] - webkit.org/b/105601 svg/zoom/page/zoom-replaced-intrinsic-ratio-001.htm [ Crash Pass ] webkit.org/b/105603 http/tests/cookies/single-quoted-value.html [ Failure Pass ]