Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(122)

Unified Diff: third_party/WebKit/LayoutTests/csspaint/registerPaint.html

Issue 1896893004: Hook up style invalidation for CSS Paint API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@css-paint-register
Patch Set: rebase. Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/csspaint/registerPaint.html
diff --git a/third_party/WebKit/LayoutTests/csspaint/registerPaint.html b/third_party/WebKit/LayoutTests/csspaint/registerPaint.html
index 2bd21d4fdc0d4b69614bed338627efb8ea0b43af..6dfda05e27e2866554e17a4e25ca6524baa8aa7b 100644
--- a/third_party/WebKit/LayoutTests/csspaint/registerPaint.html
+++ b/third_party/WebKit/LayoutTests/csspaint/registerPaint.html
@@ -12,6 +12,8 @@ function runner(tests) {
return chain.then(function() {
if (obj.expectedError) {
console.log('The worklet should throw an error with: "' + obj.expectedError + '"');
+ } else if (obj.expectedMessage) {
+ console.log('The worklet should log a warning with: "' + obj.expectedMessage + '"');
} else {
console.log('The worklet should not throw an error.');
}
@@ -54,6 +56,9 @@ function runTest() {
script: "registerPaint('foo9', class { paint() { } }); console.log('Success for \\'foo9\\'.');",
}, {
script: "var c = function() { }; c.prototype.paint = function() { }; registerPaint('foo10', c); console.log('Success for \\'foo10\\'.');",
+ }, {
+ expectedMessage: "-webkit-border-radius is a prefixed property which is not supported.",
+ script: "registerPaint('foo11', class { static get inputProperties() { return ['-webkit-border-radius']; } paint() { } });"
}]);
}
</script>

Powered by Google App Engine
This is Rietveld 408576698