Unprefix -webkit-filter and add a pixel test for it.

R=abarth@chromium.org

Review URL: https://codereview.chromium.org/850103003
This commit is contained in:
Ojan Vafai 2015-01-14 15:14:46 -08:00
parent 6179aceb5e
commit 1f0ea173f3
3 changed files with 26 additions and 1 deletions

View File

@ -54,7 +54,8 @@ uploaded file in the reference.
2. Create an dummy reference file (foo-expected.sky).
3. Run the test (it will fail).
4. Copy the -actual.png file to googlestorage (see below).
5. Put an <img> pointing to your newly uploaded png in the reference file.
5. Put an <img> pointing to your newly uploaded png in the reference file at
http://storage.googleapis.com/mojo/sky-pngs/SHA1_HASH_HERE
Copying the file to googlestorage:
$ sha1sum ../out/Debug/layout-test-results/framework/flights-app-pixels-actual.png

View File

@ -0,0 +1,13 @@
<foo>
<import src="../resources/run-after-display.sky" as="runAfterDisplay" />
<img src="http://storage.googleapis.com/mojo/sky-pngs/9a7b59f74e2bbcd0d0ceee17ead05b0da64a2af7" />
<script>
window.addEventListener('load', function() {
runAfterDisplay(function() {
internals.notifyTestComplete("");
});
});
</script>
</foo>

View File

@ -0,0 +1,11 @@
<foo>
<import src="../resources/run-after-display.sky" as="runAfterDisplay" />
<div style="filter: grayscale(1) blur(2px); color: green;">This should be gray and blurred</div>
<script>
runAfterDisplay(function() {
internals.notifyTestComplete("");
});
</script>
</foo>