WebKit Bugzilla
Attachment 348651 Details for
Bug 187925
: Add test for fix in https://bugs.webkit.org/show_bug.cgi?id=187922
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch
bug-187925-20180831105119.patch (text/plain), 8.15 KB, created by
Per Arne Vollan
on 2018-08-31 10:51:20 PDT
(
hide
)
Description:
Patch
Filename:
MIME Type:
Creator:
Per Arne Vollan
Created:
2018-08-31 10:51:20 PDT
Size:
8.15 KB
patch
obsolete
>Index: Source/WebCore/ChangeLog >=================================================================== >--- Source/WebCore/ChangeLog (revision 235558) >+++ Source/WebCore/ChangeLog (working copy) >@@ -1,3 +1,22 @@ >+2018-08-31 Per Arne Vollan <pvollan@apple.com> >+ >+ Add test for fix in https://bugs.webkit.org/show_bug.cgi?id=187922 >+ https://bugs.webkit.org/show_bug.cgi?id=187925 >+ >+ Reviewed by NOBODY (OOPS!). >+ >+ This will test that the function primaryScreenDisplayID() returns a valid display ID. >+ >+ Test: fast/misc/valid-primary-screen-displayID.html >+ >+ * platform/PlatformScreen.h: >+ * platform/mac/PlatformScreenMac.mm: >+ (WebCore::primaryScreenDisplayID): >+ * testing/Internals.cpp: >+ (WebCore::Internals::primaryScreenDisplayID): >+ * testing/Internals.h: >+ * testing/Internals.idl: >+ > 2018-08-31 Aditya Keerthi <akeerthi@apple.com> > > [Datalist][iOS] Add suggestions UI for TextFieldInputTypes >Index: Source/WebCore/platform/PlatformScreen.h >=================================================================== >--- Source/WebCore/platform/PlatformScreen.h (revision 235554) >+++ Source/WebCore/platform/PlatformScreen.h (working copy) >@@ -99,6 +99,8 @@ NSPoint flipScreenPoint(const NSPoint&, > WEBCORE_EXPORT ScreenProperties collectScreenProperties(); > WEBCORE_EXPORT void setScreenProperties(const ScreenProperties&); > >+WEBCORE_EXPORT PlatformDisplayID primaryScreenDisplayID(); >+ > uint32_t primaryOpenGLDisplayMask(); > uint32_t displayMaskForDisplay(PlatformDisplayID); > >Index: Source/WebCore/platform/mac/PlatformScreenMac.mm >=================================================================== >--- Source/WebCore/platform/mac/PlatformScreenMac.mm (revision 235554) >+++ Source/WebCore/platform/mac/PlatformScreenMac.mm (working copy) >@@ -102,7 +102,7 @@ static ScreenProperties& screenPropertie > return screenProperties; > } > >-static PlatformDisplayID& primaryScreenDisplayID() >+PlatformDisplayID primaryScreenDisplayID() > { > return screenProperties().primaryDisplayID; > } >Index: Source/WebCore/testing/Internals.cpp >=================================================================== >--- Source/WebCore/testing/Internals.cpp (revision 235554) >+++ Source/WebCore/testing/Internals.cpp (working copy) >@@ -120,6 +120,7 @@ > #include "PageOverlay.h" > #include "PathUtilities.h" > #include "PlatformMediaSessionManager.h" >+#include "PlatformScreen.h" > #include "PlatformStrategies.h" > #include "PluginData.h" > #include "PrintContext.h" >@@ -4711,4 +4712,13 @@ void Internals::notifyResourceLoadObserv > ResourceLoadObserver::shared().notifyObserver(); > } > >+unsigned long Internals::primaryScreenDisplayID() >+{ >+#if PLATFORM(MAC) >+ return WebCore::primaryScreenDisplayID(); >+#else >+ return 0; >+#endif >+} >+ > } // namespace WebCore >Index: Source/WebCore/testing/Internals.h >=================================================================== >--- Source/WebCore/testing/Internals.h (revision 235554) >+++ Source/WebCore/testing/Internals.h (working copy) >@@ -733,6 +733,8 @@ public: > > void notifyResourceLoadObserver(); > >+ unsigned long primaryScreenDisplayID(); >+ > private: > explicit Internals(Document&); > Document* contextDocument() const; >Index: Source/WebCore/testing/Internals.idl >=================================================================== >--- Source/WebCore/testing/Internals.idl (revision 235554) >+++ Source/WebCore/testing/Internals.idl (working copy) >@@ -667,4 +667,6 @@ enum CompositingPolicy { > unsigned long pluginCount(); > > void notifyResourceLoadObserver(); >+ >+ unsigned long primaryScreenDisplayID(); > }; >Index: LayoutTests/ChangeLog >=================================================================== >--- LayoutTests/ChangeLog (revision 235554) >+++ LayoutTests/ChangeLog (working copy) >@@ -1,3 +1,17 @@ >+2018-08-31 Per Arne Vollan <pvollan@apple.com> >+ >+ Add test for fix in https://bugs.webkit.org/show_bug.cgi?id=187922 >+ https://bugs.webkit.org/show_bug.cgi?id=187925 >+ >+ Reviewed by NOBODY (OOPS!). >+ >+ This will test that the function primaryScreenDisplayID() returns a valid display ID. >+ >+ * TestExpectations: >+ * fast/misc/valid-primary-screen-displayID-expected.txt: Added. >+ * fast/misc/valid-primary-screen-displayID.html: Added. >+ * platform/mac-wk2/TestExpectations: >+ > 2018-08-31 Per Arne Vollan <pvollan@apple.com> > > [Win] Some tests are failing on ews200 after upgrading iTunes. >Index: LayoutTests/TestExpectations >=================================================================== >--- LayoutTests/TestExpectations (revision 235554) >+++ LayoutTests/TestExpectations (working copy) >@@ -400,6 +400,11 @@ http/wpt/cross-origin-resource-policy/ [ > # testRunner.terminateNetworkProcess() only works in WebKit2 > fast/files/blob-network-process-crash.html [ Skip ] > >+# This test is currently only relevant on mac-wk2 >+fast/canvas/webgl/context-update-on-display-configuration.html [ Skip ] >+ >+fast/misc/valid-primary-screen-displayID.html [ Skip ] >+ > #////////////////////////////////////////////////////////////////////////////////////////// > # End platform-specific tests. > #////////////////////////////////////////////////////////////////////////////////////////// >@@ -2238,6 +2243,3 @@ webkit.org/b/187762 http/tests/websocket > webkit.org/b/187269 [ Debug ] imported/w3c/web-platform-tests/FileAPI/reading-data-section/filereader_abort.html [ Skip ] > > webkit.org/b/185308 legacy-animation-engine/animations/combo-transform-translate+scale.html [ Pass Failure ] >- >-# This test is currently only relevant on mac-wk2 >-fast/canvas/webgl/context-update-on-display-configuration.html [ Skip ] >Index: LayoutTests/fast/misc/valid-primary-screen-displayID-expected.txt >=================================================================== >--- LayoutTests/fast/misc/valid-primary-screen-displayID-expected.txt (nonexistent) >+++ LayoutTests/fast/misc/valid-primary-screen-displayID-expected.txt (working copy) >@@ -0,0 +1,2 @@ >+PASS: Valid primary screen display ID. >+ >Index: LayoutTests/fast/misc/valid-primary-screen-displayID.html >=================================================================== >--- LayoutTests/fast/misc/valid-primary-screen-displayID.html (nonexistent) >+++ LayoutTests/fast/misc/valid-primary-screen-displayID.html (working copy) >@@ -0,0 +1,25 @@ >+<!DOCTYPE html> >+<html> >+<head> >+<title>This tests that the display ID of the primary screen is valid.</title> >+<script> >+function log(msg) >+{ >+ document.getElementById('console').appendChild(document.createTextNode(msg + "\n")); >+} >+ >+function onload() >+{ >+ if (window.testRunner) >+ testRunner.dumpAsText(); >+ if (window.internals.primaryScreenDisplayID()) >+ log("PASS: Valid primary screen display ID."); >+ else >+ log("FAIL: Invalid primary screen display ID."); >+} >+</script> >+</head> >+<body onLoad="onload()"> >+<pre id="console"></pre> >+</body> >+</html> >Index: LayoutTests/platform/mac-wk2/TestExpectations >=================================================================== >--- LayoutTests/platform/mac-wk2/TestExpectations (revision 235554) >+++ LayoutTests/platform/mac-wk2/TestExpectations (working copy) >@@ -51,6 +51,10 @@ applicationmanifest/ [ Pass ] > > webkit.org/b/187183 http/tests/security/pasteboard-file-url.html [ Pass ] > >+[ Mojave+ ] fast/canvas/webgl/context-update-on-display-configuration.html [ Pass ] >+ >+fast/misc/valid-primary-screen-displayID.html [ Pass ] >+ > #////////////////////////////////////////////////////////////////////////////////////////// > # End platform-specific directories. > #////////////////////////////////////////////////////////////////////////////////////////// >@@ -836,8 +840,6 @@ webkit.org/b/183705 http/tests/workers/s > > webkit.org/b/187658 http/tests/security/bypassing-cors-checks-for-extension-urls.html [ Pass Failure ] > >-[ Mojave+ ] fast/canvas/webgl/context-update-on-display-configuration.html [ Pass ] >- > # skip manual payment-request tests > webkit.org/b/188985 imported/w3c/web-platform-tests/payment-request/PaymentValidationErrors/retry-shows-error-member-manual.https.html [ Skip ] > webkit.org/b/188985 imported/w3c/web-platform-tests/payment-request/PaymentValidationErrors/retry-shows-payer-member-manual.https.html [ Skip ]
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Flags:
simon.fraser
:
review+
Actions:
View
|
Formatted Diff
|
Diff
Attachments on
bug 187925
: 348651 |
348817