WebKit Bugzilla
Attachment 361683 Details for
Bug 191303
: DumpRenderTree should report unknown options
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch
bug-191303-20190211175410.patch (text/plain), 6.36 KB, created by
darshan
on 2019-02-11 08:54:11 PST
(
hide
)
Description:
Patch
Filename:
MIME Type:
Creator:
darshan
Created:
2019-02-11 08:54:11 PST
Size:
6.36 KB
patch
obsolete
>Subversion Revision: 240715 >diff --git a/Tools/ChangeLog b/Tools/ChangeLog >index 9b48791eb108c0b3fb78af7d052d7b6618f23b98..d3993f880b2ea6ebc7adb19e5cc3a9e735922db8 100644 >--- a/Tools/ChangeLog >+++ b/Tools/ChangeLog >@@ -1,3 +1,17 @@ >+2019-01-31 Darshan Kadu <dkadu@igalia.com> >+ >+ DumpRenderTree should report unknown options >+ https://bugs.webkit.org/show_bug.cgi?id=191303 >+ >+ Reviewed by NOBODY (OOPS!). >+ >+ Added RELEASE_ASSERT_NOT_REACHED for DumpRenderTree/TestOptions.cpp >+ to report unknown options. >+ Added and assigned test options which are currently used in tests. >+ >+ * DumpRenderTree/TestOptions.cpp: >+ (TestOptions::TestOptions): >+ > 2019-01-30 Commit Queue <commit-queue@webkit.org> > > Unreviewed, rolling out r240708. >diff --git a/Tools/DumpRenderTree/TestOptions.cpp b/Tools/DumpRenderTree/TestOptions.cpp >index c926612b1b1604a83ce2603bcda88ce3983d358e..0dabaedb0e554b0015d1b1b863e8ab2c176ef85b 100644 >--- a/Tools/DumpRenderTree/TestOptions.cpp >+++ b/Tools/DumpRenderTree/TestOptions.cpp >@@ -75,7 +75,7 @@ TestOptions::TestOptions(const std::string& pathOrURL, const std::string& absolu > auto value = pairString.substr(equalsLocation + 1, pairEnd - (equalsLocation + 1)); > if (key == "enableAttachmentElement") > enableAttachmentElement = parseBooleanTestHeaderValue(value); >- if (key == "useAcceleratedDrawing") >+ else if (key == "useAcceleratedDrawing") > useAcceleratedDrawing = parseBooleanTestHeaderValue(value); > else if (key == "enableIntersectionObserver") > enableIntersectionObserver = parseBooleanTestHeaderValue(value); >@@ -111,6 +111,52 @@ TestOptions::TestOptions(const std::string& pathOrURL, const std::string& absolu > enableCSSLogical = parseBooleanTestHeaderValue(value); > else if (key == "internal:AdClickAttributionEnabled") > adClickAttributionEnabled = parseBooleanTestHeaderValue(value); >+ else if (key == "applicationManifest") >+ applicationManifest = value; >+ else if (key == "experimental:CSSCustomPropertiesAndValuesEnabled") >+ enableCSSCustomPropertiesAndValues = parseBooleanTestHeaderValue(value); >+ else if (key == "useFlexibleViewport") >+ useFlexibleViewport = parseBooleanTestHeaderValue(value); >+ else if (key == "useThreadedScrolling") >+ useThreadedScrolling = parseBooleanTestHeaderValue(value); >+ else if (key == "experimental:DarkModeCSSEnabled") >+ enableDarkModeCSS = parseBooleanTestHeaderValue(value); >+ else if (key == "experimental:CSSTypedOMEnabled") >+ enableCSSTypedOM = parseBooleanTestHeaderValue(value); >+ else if (key == "punchOutWhiteBackgrounds") >+ punchOutWhiteBackgrounds = parseBooleanTestHeaderValue(value); >+ else if (key == "enableEditableImages") >+ enableEditableImages = parseBooleanTestHeaderValue(value); >+ else if (key == "useCharacterSelectionGranularity") >+ useCharacterSelectionGranularity = parseBooleanTestHeaderValue(value); >+ else if (key == "spellCheckingDots") >+ spellCheckingDots = parseBooleanTestHeaderValue(value); >+ else if (key == "experimental:CSSPaintingAPIEnabled") >+ enableCSSPaintingAPI = parseBooleanTestHeaderValue(value); >+ else if (key == "experimental:PointerEventsEnabled") >+ enablePointerEvents = parseBooleanTestHeaderValue(value); >+ else if (key =="useMockScrollbars") >+ useMockScrollbars = parseBooleanTestHeaderValue(value); >+ else if (key =="ignoresViewportScaleLimits") >+ ignoresViewportScaleLimits = parseBooleanTestHeaderValue(value); >+ else if (key =="shouldIgnoreMetaViewport") >+ shouldIgnoreMetaViewport = parseBooleanTestHeaderValue(value); >+ else if (key =="enableProcessSwapOnNavigation") >+ enableProcessSwapOnNavigation = parseBooleanTestHeaderValue(value); >+ else if (key =="runSingly") >+ runSingly = parseBooleanTestHeaderValue(value); >+ else if (key =="internal:WebAPIStatisticsEnabled") >+ enableWebAPIStatistics = parseBooleanTestHeaderValue(value); >+ else if (key =="internal:SourceBufferChangeTypeEnabled") >+ enableSourceBufferChangeType = parseBooleanTestHeaderValue(value); >+ else if (key =="needsSiteSpecificQuirks") >+ needsSiteSpecificQuirks = parseBooleanTestHeaderValue(value); >+ else if (key =="modernMediaControls") >+ modernMediaControls = parseBooleanTestHeaderValue(value); >+ else if (key == "experimental:WebGL2Enabled") >+ enableWebGL2 = parseBooleanTestHeaderValue(value); >+ else >+ RELEASE_ASSERT_NOT_REACHED(); > pairStart = pairEnd + 1; > } > } >diff --git a/Tools/DumpRenderTree/TestOptions.h b/Tools/DumpRenderTree/TestOptions.h >index c27e842a48f57ac80f5f04bbb5e6a92ad105d81d..d71b6fa630e8ee67a202b646f2211228d58e34b0 100644 >--- a/Tools/DumpRenderTree/TestOptions.h >+++ b/Tools/DumpRenderTree/TestOptions.h >@@ -47,6 +47,30 @@ struct TestOptions { > bool enableCSSLogical { false }; > bool adClickAttributionEnabled { false }; > std::string jscOptions; >+ // FIXME: support following test options is not implemented, >+ // https://bugs.webkit.org/show_bug.cgi?id=194396 >+ bool enableCSSCustomPropertiesAndValues { false }; >+ bool useFlexibleViewport { false }; >+ bool useThreadedScrolling { true }; >+ bool enableDarkModeCSS { true }; >+ bool enableCSSTypedOM { false }; >+ bool punchOutWhiteBackgrounds { false }; >+ bool enableEditableImages { false}; >+ bool useCharacterSelectionGranularity { false }; >+ bool spellCheckingDots { false }; >+ bool enableCSSPaintingAPI { false }; >+ bool enablePointerEvents { true }; >+ bool useMockScrollbars { false }; >+ bool ignoresViewportScaleLimits { true }; >+ bool shouldIgnoreMetaViewport { false }; >+ bool enableProcessSwapOnNavigation { false }; >+ bool runSingly { false }; >+ bool enableWebAPIStatistics { false }; >+ bool enableSourceBufferChangeType { true }; >+ bool needsSiteSpecificQuirks { false }; >+ bool modernMediaControls { true }; >+ bool enableWebGL2 { false }; >+ std::string applicationManifest; > > TestOptions(const std::string& pathOrURL, const std::string& absolutePath); > bool webViewIsCompatibleWithOptions(const TestOptions&) const;
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
Actions:
View
|
Formatted Diff
|
Diff
Attachments on
bug 191303
:
358263
|
358456
|
360474
|
360733
|
360737
|
360738
|
360743
|
360746
|
360760
|
360762
|
360768
|
360769
|
360779
|
360865
|
360913
|
361201
|
361302
|
361683
|
361687
|
362238