gecko-dev/testing/web-platform/tests/css/css-properties-values-api/resources
Anders Hartvoll Ruud 048d5e7b61 Bug 1502955 [wpt PR 13763] - [css-properties-values-api] Validate generate_property argument., a=testonly
Automatic update from web-platform-tests[css-properties-values-api] Validate generate_property argument.

This prevents silently dropping invalid arguments. For example, the
following currently generates a non-inherited property:

  let name = generate_property(syntax: '<length>', inherited: true);

This is because 'inherited' is not an option for CSS.registerProperty (the
actual option is 'inherits').

With this change, an exception is thrown if unknown options are provided.

R=futhark@chromium.org

Bug: 641877
Change-Id: I7b639651c331aa705416db95a3de751353648031
Reviewed-on: https://chromium-review.googlesource.com/c/1304522
Reviewed-by: Rune Lillesveen <futhark@chromium.org>
Commit-Queue: Anders Ruud <andruud@chromium.org>
Cr-Commit-Position: refs/heads/master@{#603862}

--

wpt-commits: add8843a7da2ab5ee5ba329c0ae052573c23cde2
wpt-pr: 13763
2018-11-10 09:02:31 +00:00
..
utils.js Bug 1502955 [wpt PR 13763] - [css-properties-values-api] Validate generate_property argument., a=testonly 2018-11-10 09:02:31 +00:00