Title: [250391] trunk/Tools
- Revision
- 250391
- Author
- [email protected]
- Date
- 2019-09-26 11:52:13 -0700 (Thu, 26 Sep 2019)
Log Message
TestWebKitAPI.WebKit.ReloadWithDifferingInitialScale is failing consistently
https://bugs.webkit.org/show_bug.cgi?id=202273
Reviewed by Aakash Jain.
The content width scaling limits added in r250361 prevent this test from scaling down the content width (2000px
wide) to fit the viewport (375px). To avoid this issue, change the content width from 2000px to 1500px, which is
still a very wide content width for a web page.
* TestWebKitAPI/Tests/WebKitCocoa/ReloadWithDifferingInitialScale.mm:
Modified Paths
Diff
Modified: trunk/Tools/ChangeLog (250390 => 250391)
--- trunk/Tools/ChangeLog 2019-09-26 18:25:47 UTC (rev 250390)
+++ trunk/Tools/ChangeLog 2019-09-26 18:52:13 UTC (rev 250391)
@@ -1,3 +1,16 @@
+2019-09-26 Wenson Hsieh <[email protected]>
+
+ TestWebKitAPI.WebKit.ReloadWithDifferingInitialScale is failing consistently
+ https://bugs.webkit.org/show_bug.cgi?id=202273
+
+ Reviewed by Aakash Jain.
+
+ The content width scaling limits added in r250361 prevent this test from scaling down the content width (2000px
+ wide) to fit the viewport (375px). To avoid this issue, change the content width from 2000px to 1500px, which is
+ still a very wide content width for a web page.
+
+ * TestWebKitAPI/Tests/WebKitCocoa/ReloadWithDifferingInitialScale.mm:
+
2019-09-26 Alexey Shvayka <[email protected]>
toExponential, toFixed, and toPrecision should allow arguments up to 100
Modified: trunk/Tools/TestWebKitAPI/Tests/WebKitCocoa/ReloadWithDifferingInitialScale.mm (250390 => 250391)
--- trunk/Tools/TestWebKitAPI/Tests/WebKitCocoa/ReloadWithDifferingInitialScale.mm 2019-09-26 18:25:47 UTC (rev 250390)
+++ trunk/Tools/TestWebKitAPI/Tests/WebKitCocoa/ReloadWithDifferingInitialScale.mm 2019-09-26 18:52:13 UTC (rev 250391)
@@ -64,7 +64,7 @@
// Install the user script, so that the next time we load the page,
// the document lays out very wide, causing the initial scale to be small.
- auto userScript = adoptNS([[WKUserScript alloc] initWithSource:@"document.body.style.width = '2000px'; setTimeout(function () { window.webkit.messageHandlers.testHandler.postMessage('ranUserScript'); }, 0)" injectionTime:WKUserScriptInjectionTimeAtDocumentEnd forMainFrameOnly:YES]);
+ auto userScript = adoptNS([[WKUserScript alloc] initWithSource:@"document.body.style.width = '1500px'; setTimeout(function () { window.webkit.messageHandlers.testHandler.postMessage('ranUserScript'); }, 0)" injectionTime:WKUserScriptInjectionTimeAtDocumentEnd forMainFrameOnly:YES]);
[[webView configuration].userContentController addUserScript:userScript.get()];
// Reload, causing both the user script and the page state restoration code to run.
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes