Diff
Modified: trunk/LayoutTests/ChangeLog (188131 => 188132)
--- trunk/LayoutTests/ChangeLog 2015-08-07 17:30:11 UTC (rev 188131)
+++ trunk/LayoutTests/ChangeLog 2015-08-07 17:30:16 UTC (rev 188132)
@@ -1,5 +1,25 @@
2015-08-06 Simon Fraser <[email protected]>
+ Move ios-sim-deprecated/fast/dom/ tests into fast/dom
+
+ * TestExpectations:
+ * fast/dom/Range/expand-word-with-apostrophe-expected.txt: Renamed from LayoutTests/platform/ios-sim-deprecated/fast/dom/Range/expand-word-with-apostrophe-expected.txt.
+ * fast/dom/Range/expand-word-with-apostrophe.html: Renamed from LayoutTests/platform/ios-sim-deprecated/fast/dom/Range/expand-word-with-apostrophe.html.
+ * fast/dom/Window/no-window-resize-on-document-size-change-expected.txt: Added.
+ * fast/dom/Window/no-window-resize-on-document-size-change.html: Renamed from LayoutTests/platform/ios-sim-deprecated/fast/dom/Window/no-window-resize-on-document-size-change.html.
+ * fast/dom/adopt-attribute-crash-expected.txt:
+ * fast/dom/navigator-iOS-userAgent-expected.txt: Added.
+ * fast/dom/navigator-iOS-userAgent.html: Renamed from LayoutTests/platform/ios-sim-deprecated/fast/dom/navigator-iOS-userAgent.html.
+ * fast/dom/timer-fire-after-page-pause-expected.txt: Renamed from LayoutTests/platform/ios-sim-deprecated/fast/dom/timer-fire-after-page-pause-expected.txt.
+ * fast/dom/timer-fire-after-page-pause.html: Renamed from LayoutTests/platform/ios-sim-deprecated/fast/dom/timer-fire-after-page-pause.html.
+ * platform/ios-sim-deprecated/fast/dom/Window/no-window-resize-on-document-size-change-expected.txt: Removed.
+ * platform/ios-sim-deprecated/fast/dom/navigator-iOS-userAgent-expected.txt: Removed.
+ * platform/ios-simulator-wk1/TestExpectations:
+ * platform/ios-simulator/TestExpectations:
+ * platform/ios-simulator/fast/dom/navigator-iOS-userAgent-expected.txt: Added.
+
+2015-08-06 Simon Fraser <[email protected]>
+
Move two ios-sim-deprecated/animations/ tests into animations.
* animations/resources/anim.html: Renamed from LayoutTests/platform/ios-sim-deprecated/animations/resources/anim.html.
Modified: trunk/LayoutTests/TestExpectations (188131 => 188132)
--- trunk/LayoutTests/TestExpectations 2015-08-07 17:30:11 UTC (rev 188131)
+++ trunk/LayoutTests/TestExpectations 2015-08-07 17:30:16 UTC (rev 188132)
@@ -543,3 +543,6 @@
# Media Sessions is not yet enabled by default: ENABLE(MEDIA_SESSION)
media/session [ Skip ]
+
+# Only iOS WK1 has testRunner.setPagePaused.
+fast/dom/timer-fire-after-page-pause.html [ Skip ]
\ No newline at end of file
Copied: trunk/LayoutTests/fast/dom/Range/expand-word-with-apostrophe-expected.txt (from rev 188131, trunk/LayoutTests/platform/ios-sim-deprecated/fast/dom/Range/expand-word-with-apostrophe-expected.txt) (0 => 188132)
--- trunk/LayoutTests/fast/dom/Range/expand-word-with-apostrophe-expected.txt (rev 0)
+++ trunk/LayoutTests/fast/dom/Range/expand-word-with-apostrophe-expected.txt 2015-08-07 17:30:16 UTC (rev 188132)
@@ -0,0 +1,3 @@
+This tests that word selection does not consider a RIGHT SINGLE QUOTATION MARK (’) in the middle of a word as a word boundary.
+
+PASS
Copied: trunk/LayoutTests/fast/dom/Range/expand-word-with-apostrophe.html (from rev 188131, trunk/LayoutTests/platform/ios-sim-deprecated/fast/dom/Range/expand-word-with-apostrophe.html) (0 => 188132)
--- trunk/LayoutTests/fast/dom/Range/expand-word-with-apostrophe.html (rev 0)
+++ trunk/LayoutTests/fast/dom/Range/expand-word-with-apostrophe.html 2015-08-07 17:30:16 UTC (rev 188132)
@@ -0,0 +1,20 @@
+<p>
+ This tests that word selection does not consider a RIGHT SINGLE QUOTATION MARK (’) in the middle
+ of a word as a word boundary.
+</p>
+<p id="result">FAIL: Test did not run</p>
+<div id="target">And here’s your problem</div>
+<script>
+ if (window.testRunner)
+ testRunner.dumpAsText();
+
+ var target = document.getElementById("target").firstChild;
+ var range = document.createRange();
+
+ range.setStart(target, 6);
+ range.setEnd(target, 6);
+ range.expand("word");
+ var rangeString = range.toString();
+ document.getElementById("result").textContent = (rangeString === "here\u2019s") ? "PASS" : "FAIL: after expanding to word boundaries, the range was \"" + rangeString + "\"";
+ target.parentNode.style.display = "none";
+</script>
Added: trunk/LayoutTests/fast/dom/Window/no-window-resize-on-document-size-change-expected.txt (0 => 188132)
--- trunk/LayoutTests/fast/dom/Window/no-window-resize-on-document-size-change-expected.txt (rev 0)
+++ trunk/LayoutTests/fast/dom/Window/no-window-resize-on-document-size-change-expected.txt 2015-08-07 17:30:16 UTC (rev 188132)
@@ -0,0 +1,10 @@
+Test that changing the viewport causes a window.resize event.
+
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+
+
+PASS windowResizeCount is 0
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
Copied: trunk/LayoutTests/fast/dom/Window/no-window-resize-on-document-size-change.html (from rev 188131, trunk/LayoutTests/platform/ios-sim-deprecated/fast/dom/Window/no-window-resize-on-document-size-change.html) (0 => 188132)
--- trunk/LayoutTests/fast/dom/Window/no-window-resize-on-document-size-change.html (rev 0)
+++ trunk/LayoutTests/fast/dom/Window/no-window-resize-on-document-size-change.html 2015-08-07 17:30:16 UTC (rev 188132)
@@ -0,0 +1,41 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<html>
+ <head>
+ <script src=""
+ </head>
+<body style="height:5000px;">
+<script>
+description("Test that changing the viewport causes a window.resize event.");
+
+window.jsTestIsAsync = true;
+
+var windowResizeCount = 0;
+
+window._onresize_ = function(event)
+{
+ ++windowResizeCount;
+}
+
+function finishTest() {
+ shouldBe("windowResizeCount", "0");
+ finishJSTest();
+}
+
+window._onload_ = function() {
+ setTimeout(function() {
+ document.body.style.height = '1000px';
+ document.body.offsetHeight;
+ document.body.style.height = '2000px';
+ document.body.offsetHeight;
+ document.body.style.height = '3000px';
+ document.body.offsetHeight;
+ document.body.style.height = '5000px';
+ document.body.offsetHeight;
+ setTimeout(finishTest, 100);
+ }, 0);
+}
+</script>
+<script src=""
+</body>
+</html>
+
Modified: trunk/LayoutTests/fast/dom/adopt-attribute-crash-expected.txt (188131 => 188132)
--- trunk/LayoutTests/fast/dom/adopt-attribute-crash-expected.txt 2015-08-07 17:30:11 UTC (rev 188131)
+++ trunk/LayoutTests/fast/dom/adopt-attribute-crash-expected.txt 2015-08-07 17:30:16 UTC (rev 188132)
@@ -1,7 +1,7 @@
ALERT: Tests adopting two Attr nodes of the same qualified name. WebKit shouldn't crash or assert.
This page contains the following errors:
-error on line 3 at column 35: Namespaced Attribute href in 'http://www.w3.org/1999/xlink' redefined
+error on line 3 at column 66: Namespaced Attribute href in 'http://www.w3.org/1999/xlink' redefined
error on line 18 at column 10: Extra content at the end of the document
Below is a rendering of the page up to the first error.
Added: trunk/LayoutTests/fast/dom/navigator-iOS-userAgent-expected.txt (0 => 188132)
--- trunk/LayoutTests/fast/dom/navigator-iOS-userAgent-expected.txt (rev 0)
+++ trunk/LayoutTests/fast/dom/navigator-iOS-userAgent-expected.txt 2015-08-07 17:30:16 UTC (rev 188132)
@@ -0,0 +1,11 @@
+Verify the user-agent string does not have the 'Simulator' device name.
+
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+
+
+FAIL User agent platform should be "iPhone" or "iPad".
+PASS User agent does not contain "Simulator".
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
Copied: trunk/LayoutTests/fast/dom/navigator-iOS-userAgent.html (from rev 188131, trunk/LayoutTests/platform/ios-sim-deprecated/fast/dom/navigator-iOS-userAgent.html) (0 => 188132)
--- trunk/LayoutTests/fast/dom/navigator-iOS-userAgent.html (rev 0)
+++ trunk/LayoutTests/fast/dom/navigator-iOS-userAgent.html 2015-08-07 17:30:16 UTC (rev 188132)
@@ -0,0 +1,27 @@
+<html>
+<head>
+<script src=""
+</head>
+<body>
+<p id="description"></p>
+<div id="console"></div>
+<script>
+description("Verify the user-agent string does not have the 'Simulator' device name.");
+
+var userAgent = navigator.userAgent;
+var isIPadUserAgent = userAgent.indexOf("Mozilla/5.0 (iPhone;") == 0;
+var isIPhoneUserAgent = userAgent.indexOf("Mozilla/5.0 (iPad;") == 0;
+
+function test(str, condition) {
+ var func = condition ? testPassed : testFailed;
+ func(str);
+}
+
+test('User agent platform should be "iPhone" or "iPad".', (isIPadUserAgent || isIPhoneUserAgent));
+test('User agent does not contain "Simulator".', userAgent.indexOf("Simulator") < 0);
+
+successfullyParsed = true;
+</script>
+<script src=""
+</body>
+</html>
Copied: trunk/LayoutTests/fast/dom/timer-fire-after-page-pause-expected.txt (from rev 188131, trunk/LayoutTests/platform/ios-sim-deprecated/fast/dom/timer-fire-after-page-pause-expected.txt) (0 => 188132)
--- trunk/LayoutTests/fast/dom/timer-fire-after-page-pause-expected.txt (rev 0)
+++ trunk/LayoutTests/fast/dom/timer-fire-after-page-pause-expected.txt 2015-08-07 17:30:16 UTC (rev 188132)
@@ -0,0 +1,3 @@
+Test for <rdar://problem/12116720> REGRESSION (Hoodoo): Scrolling to bottom of m.facebook.com doesn't load more posts [Millicom Colombia]
+
+PASS
Copied: trunk/LayoutTests/fast/dom/timer-fire-after-page-pause.html (from rev 188131, trunk/LayoutTests/platform/ios-sim-deprecated/fast/dom/timer-fire-after-page-pause.html) (0 => 188132)
--- trunk/LayoutTests/fast/dom/timer-fire-after-page-pause.html (rev 0)
+++ trunk/LayoutTests/fast/dom/timer-fire-after-page-pause.html 2015-08-07 17:30:16 UTC (rev 188132)
@@ -0,0 +1,26 @@
+<html>
+<script>
+if (window.testRunner) {
+ testRunner.waitUntilDone();
+ testRunner.dumpAsText();
+}
+
+function doTest()
+{
+ if (window.testRunner) {
+ testRunner.setPagePaused(true);
+ setTimeout(function() {
+ document.getElementById('results').innerText = 'PASS';
+ testRunner.notifyDone();
+ }, 100);
+ testRunner.setPagePaused(false);
+ }
+}
+
+window.addEventListener('load', doTest, false);
+</script>
+<body>
+<p>Test for <rdar://problem/12116720> REGRESSION (Hoodoo): Scrolling to bottom of m.facebook.com doesn't load more posts [Millicom Colombia]</p>
+<pre id='results'>FAIL</pre>
+</body>
+</html>
Deleted: trunk/LayoutTests/platform/ios-sim-deprecated/fast/dom/Range/expand-word-with-apostrophe-expected.txt (188131 => 188132)
--- trunk/LayoutTests/platform/ios-sim-deprecated/fast/dom/Range/expand-word-with-apostrophe-expected.txt 2015-08-07 17:30:11 UTC (rev 188131)
+++ trunk/LayoutTests/platform/ios-sim-deprecated/fast/dom/Range/expand-word-with-apostrophe-expected.txt 2015-08-07 17:30:16 UTC (rev 188132)
@@ -1,3 +0,0 @@
-This tests that word selection does not consider a RIGHT SINGLE QUOTATION MARK (’) in the middle of a word as a word boundary.
-
-PASS
Deleted: trunk/LayoutTests/platform/ios-sim-deprecated/fast/dom/Range/expand-word-with-apostrophe.html (188131 => 188132)
--- trunk/LayoutTests/platform/ios-sim-deprecated/fast/dom/Range/expand-word-with-apostrophe.html 2015-08-07 17:30:11 UTC (rev 188131)
+++ trunk/LayoutTests/platform/ios-sim-deprecated/fast/dom/Range/expand-word-with-apostrophe.html 2015-08-07 17:30:16 UTC (rev 188132)
@@ -1,20 +0,0 @@
-<p>
- This tests that word selection does not consider a RIGHT SINGLE QUOTATION MARK (’) in the middle
- of a word as a word boundary.
-</p>
-<p id="result">FAIL: Test did not run</p>
-<div id="target">And here’s your problem</div>
-<script>
- if (window.testRunner)
- testRunner.dumpAsText();
-
- var target = document.getElementById("target").firstChild;
- var range = document.createRange();
-
- range.setStart(target, 6);
- range.setEnd(target, 6);
- range.expand("word");
- var rangeString = range.toString();
- document.getElementById("result").textContent = (rangeString === "here\u2019s") ? "PASS" : "FAIL: after expanding to word boundaries, the range was \"" + rangeString + "\"";
- target.parentNode.style.display = "none";
-</script>
Deleted: trunk/LayoutTests/platform/ios-sim-deprecated/fast/dom/Window/no-window-resize-on-document-size-change-expected.txt (188131 => 188132)
--- trunk/LayoutTests/platform/ios-sim-deprecated/fast/dom/Window/no-window-resize-on-document-size-change-expected.txt 2015-08-07 17:30:11 UTC (rev 188131)
+++ trunk/LayoutTests/platform/ios-sim-deprecated/fast/dom/Window/no-window-resize-on-document-size-change-expected.txt 2015-08-07 17:30:16 UTC (rev 188132)
@@ -1,6 +0,0 @@
-CONSOLE MESSAGE: line 8: ReferenceError: Can't find variable: description
-layer at (0,0) size 800x5016
- RenderView at (0,0) size 800x600
-layer at (0,0) size 800x5016
- RenderBlock {HTML} at (0,0) size 800x5016
- RenderBody {BODY} at (8,8) size 784x5000
Deleted: trunk/LayoutTests/platform/ios-sim-deprecated/fast/dom/Window/no-window-resize-on-document-size-change.html (188131 => 188132)
--- trunk/LayoutTests/platform/ios-sim-deprecated/fast/dom/Window/no-window-resize-on-document-size-change.html 2015-08-07 17:30:11 UTC (rev 188131)
+++ trunk/LayoutTests/platform/ios-sim-deprecated/fast/dom/Window/no-window-resize-on-document-size-change.html 2015-08-07 17:30:16 UTC (rev 188132)
@@ -1,41 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
-<html>
- <head>
- <script src=""
- </head>
-<body style="height:5000px;">
-<script>
-description("Test that changing the viewport causes a window.resize event.");
-
-window.jsTestIsAsync = true;
-
-var windowResizeCount = 0;
-
-window._onresize_ = function(event)
-{
- ++windowResizeCount;
-}
-
-function finishTest() {
- shouldBe("windowResizeCount", "0");
- finishJSTest();
-}
-
-window._onload_ = function() {
- setTimeout(function() {
- document.body.style.height = '1000px';
- document.body.offsetHeight;
- document.body.style.height = '2000px';
- document.body.offsetHeight;
- document.body.style.height = '3000px';
- document.body.offsetHeight;
- document.body.style.height = '5000px';
- document.body.offsetHeight;
- setTimeout(finishTest, 100);
- }, 0);
-}
-</script>
-<script src=""
-</body>
-</html>
-
Deleted: trunk/LayoutTests/platform/ios-sim-deprecated/fast/dom/navigator-iOS-userAgent-expected.txt (188131 => 188132)
--- trunk/LayoutTests/platform/ios-sim-deprecated/fast/dom/navigator-iOS-userAgent-expected.txt 2015-08-07 17:30:11 UTC (rev 188131)
+++ trunk/LayoutTests/platform/ios-sim-deprecated/fast/dom/navigator-iOS-userAgent-expected.txt 2015-08-07 17:30:16 UTC (rev 188132)
@@ -1,8 +0,0 @@
-CONSOLE MESSAGE: line 10: TypeError: HTMLParagraphElement is not a function (evaluating 'description("Verify the user-agent string does not have the 'Simulator' device name.")')
-layer at (0,0) size 800x600
- RenderView at (0,0) size 800x600
-layer at (0,0) size 800x600
- RenderBlock {HTML} at (0,0) size 800x600
- RenderBody {BODY} at (8,8) size 784x584
- RenderBlock {P} at (0,0) size 784x0
- RenderBlock {DIV} at (0,0) size 784x0
Deleted: trunk/LayoutTests/platform/ios-sim-deprecated/fast/dom/navigator-iOS-userAgent.html (188131 => 188132)
--- trunk/LayoutTests/platform/ios-sim-deprecated/fast/dom/navigator-iOS-userAgent.html 2015-08-07 17:30:11 UTC (rev 188131)
+++ trunk/LayoutTests/platform/ios-sim-deprecated/fast/dom/navigator-iOS-userAgent.html 2015-08-07 17:30:16 UTC (rev 188132)
@@ -1,28 +0,0 @@
-<html>
-<head>
-<link rel="stylesheet" href=""
-<script src=""
-</head>
-<body>
-<p id="description"></p>
-<div id="console"></div>
-<script>
-description("Verify the user-agent string does not have the 'Simulator' device name.");
-
-var userAgent = navigator.userAgent;
-var isIPadUserAgent = userAgent.indexOf("Mozilla/5.0 (iPhone;") == 0;
-var isIPhoneUserAgent = userAgent.indexOf("Mozilla/5.0 (iPad;") == 0;
-
-function test(str, condition) {
- var func = condition ? testPassed : testFailed;
- func(str);
-}
-
-test('User agent platform should be "iPhone" or "iPad".', (isIPadUserAgent || isIPhoneUserAgent));
-test('User agent does not contain "Simulator".', userAgent.indexOf("Simulator") < 0);
-
-successfullyParsed = true;
-</script>
-<script src=""
-</body>
-</html>
Deleted: trunk/LayoutTests/platform/ios-sim-deprecated/fast/dom/timer-fire-after-page-pause-expected.txt (188131 => 188132)
--- trunk/LayoutTests/platform/ios-sim-deprecated/fast/dom/timer-fire-after-page-pause-expected.txt 2015-08-07 17:30:11 UTC (rev 188131)
+++ trunk/LayoutTests/platform/ios-sim-deprecated/fast/dom/timer-fire-after-page-pause-expected.txt 2015-08-07 17:30:16 UTC (rev 188132)
@@ -1,3 +0,0 @@
-Test for <rdar://problem/12116720> REGRESSION (Hoodoo): Scrolling to bottom of m.facebook.com doesn't load more posts [Millicom Colombia]
-
-PASS
Deleted: trunk/LayoutTests/platform/ios-sim-deprecated/fast/dom/timer-fire-after-page-pause.html (188131 => 188132)
--- trunk/LayoutTests/platform/ios-sim-deprecated/fast/dom/timer-fire-after-page-pause.html 2015-08-07 17:30:11 UTC (rev 188131)
+++ trunk/LayoutTests/platform/ios-sim-deprecated/fast/dom/timer-fire-after-page-pause.html 2015-08-07 17:30:16 UTC (rev 188132)
@@ -1,26 +0,0 @@
-<html>
-<script>
-if (window.testRunner) {
- testRunner.waitUntilDone();
- testRunner.dumpAsText();
-}
-
-function doTest()
-{
- if (window.testRunner) {
- testRunner.setPagePaused(true);
- setTimeout(function() {
- document.getElementById('results').innerText = 'PASS';
- testRunner.notifyDone();
- }, 100);
- testRunner.setPagePaused(false);
- }
-}
-
-window.addEventListener('load', doTest, false);
-</script>
-<body>
-<p>Test for <rdar://problem/12116720> REGRESSION (Hoodoo): Scrolling to bottom of m.facebook.com doesn't load more posts [Millicom Colombia]</p>
-<pre id='results'>FAIL</pre>
-</body>
-</html>
Modified: trunk/LayoutTests/platform/ios-simulator/TestExpectations (188131 => 188132)
--- trunk/LayoutTests/platform/ios-simulator/TestExpectations 2015-08-07 17:30:11 UTC (rev 188131)
+++ trunk/LayoutTests/platform/ios-simulator/TestExpectations 2015-08-07 17:30:16 UTC (rev 188132)
@@ -2694,6 +2694,8 @@
# Not implemented
webkit.org/b/145617 compositing/layer-creation/zoomed-clip-intersection.html [ Skip ]
+fast/dom/timer-fire-after-page-pause.html [ Skip ]
+
# This test depends on location, and it is impossible to mock the particular mechanism
# this test uses to determine location.
fast/text/softbank-emoji.html [ Failure Pass ]
Added: trunk/LayoutTests/platform/ios-simulator/fast/dom/navigator-iOS-userAgent-expected.txt (0 => 188132)
--- trunk/LayoutTests/platform/ios-simulator/fast/dom/navigator-iOS-userAgent-expected.txt (rev 0)
+++ trunk/LayoutTests/platform/ios-simulator/fast/dom/navigator-iOS-userAgent-expected.txt 2015-08-07 17:30:16 UTC (rev 188132)
@@ -0,0 +1,11 @@
+Verify the user-agent string does not have the 'Simulator' device name.
+
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+
+
+PASS User agent platform should be "iPhone" or "iPad".
+PASS User agent does not contain "Simulator".
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
Modified: trunk/LayoutTests/platform/ios-simulator-wk1/TestExpectations (188131 => 188132)
--- trunk/LayoutTests/platform/ios-simulator-wk1/TestExpectations 2015-08-07 17:30:11 UTC (rev 188131)
+++ trunk/LayoutTests/platform/ios-simulator-wk1/TestExpectations 2015-08-07 17:30:16 UTC (rev 188132)
@@ -1727,3 +1727,5 @@
storage/websql/alter-to-info-table.html [ Crash ]
webkit.org/b/145432 media/video-transformed-by-_javascript_.html [ Failure ]
+
+fast/dom/timer-fire-after-page-pause.html [ Pass ]