OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2016-2018 Apple Inc. All rights reserved. | 2 * Copyright (C) 2016-2018 Apple Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 if (equalsLocation == std::string::npos) { | 70 if (equalsLocation == std::string::npos) { |
71 LOG_ERROR("Malformed option in test header (could not find '=' chara
cter) in %s", path.c_str()); | 71 LOG_ERROR("Malformed option in test header (could not find '=' chara
cter) in %s", path.c_str()); |
72 break; | 72 break; |
73 } | 73 } |
74 auto key = pairString.substr(pairStart, equalsLocation - pairStart); | 74 auto key = pairString.substr(pairStart, equalsLocation - pairStart); |
75 auto value = pairString.substr(equalsLocation + 1, pairEnd - (equalsLoca
tion + 1)); | 75 auto value = pairString.substr(equalsLocation + 1, pairEnd - (equalsLoca
tion + 1)); |
76 if (key == "enableAttachmentElement") | 76 if (key == "enableAttachmentElement") |
77 enableAttachmentElement = parseBooleanTestHeaderValue(value); | 77 enableAttachmentElement = parseBooleanTestHeaderValue(value); |
78 if (key == "useAcceleratedDrawing") | 78 if (key == "useAcceleratedDrawing") |
79 useAcceleratedDrawing = parseBooleanTestHeaderValue(value); | 79 useAcceleratedDrawing = parseBooleanTestHeaderValue(value); |
80 else if (key == "enableIntersectionObserver") | |
81 enableIntersectionObserver = parseBooleanTestHeaderValue(value); | |
82 else if (key == "enableMenuItemElement") | 80 else if (key == "enableMenuItemElement") |
83 enableMenuItemElement = parseBooleanTestHeaderValue(value); | 81 enableMenuItemElement = parseBooleanTestHeaderValue(value); |
84 else if (key == "enableModernMediaControls") | 82 else if (key == "enableModernMediaControls") |
85 enableModernMediaControls = parseBooleanTestHeaderValue(value); | 83 enableModernMediaControls = parseBooleanTestHeaderValue(value); |
86 else if (key == "enablePointerLock") | 84 else if (key == "enablePointerLock") |
87 enablePointerLock = parseBooleanTestHeaderValue(value); | 85 enablePointerLock = parseBooleanTestHeaderValue(value); |
88 else if (key == "enableWebAuthentication") | 86 else if (key == "enableWebAuthentication") |
89 enableWebAuthentication = parseBooleanTestHeaderValue(value); | 87 enableWebAuthentication = parseBooleanTestHeaderValue(value); |
90 else if (key == "enableDragDestinationActionLoad") | 88 else if (key == "enableDragDestinationActionLoad") |
91 enableDragDestinationActionLoad = parseBooleanTestHeaderValue(value)
; | 89 enableDragDestinationActionLoad = parseBooleanTestHeaderValue(value)
; |
(...skipping 15 matching lines...) Expand all Loading... |
107 jscOptions = value; | 105 jscOptions = value; |
108 pairStart = pairEnd + 1; | 106 pairStart = pairEnd + 1; |
109 } | 107 } |
110 } | 108 } |
111 | 109 |
112 bool TestOptions::webViewIsCompatibleWithOptions(const TestOptions& other) const | 110 bool TestOptions::webViewIsCompatibleWithOptions(const TestOptions& other) const |
113 { | 111 { |
114 return other.layerBackedWebView == layerBackedWebView | 112 return other.layerBackedWebView == layerBackedWebView |
115 && other.jscOptions == jscOptions; | 113 && other.jscOptions == jscOptions; |
116 } | 114 } |
OLD | NEW |