Commit df0d9265 authored by Darren Shen's avatar Darren Shen Committed by Commit Bot

[css-typed-om] Add IDL tests for CSSKeywordValue.

This patch uses idlharness.js to test the CSSKeywordValue interface.

Bug: 774887
Change-Id: I64bd459bcc199094fc0ce60c217110fc0f0cb17f
Reviewed-on: https://chromium-review.googlesource.com/848117Reviewed-by: default avatarnainar <nainar@chromium.org>
Commit-Queue: Darren Shen <shend@chromium.org>
Cr-Commit-Position: refs/heads/master@{#526921}
parent db757646
<!doctype html>
<meta charset=utf-8>
<title>CSSKeywordValue IDL</title>
<link rel="help" href="https://drafts.css-houdini.org/css-typed-om-1/#keywordvalue-objects">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/resources/WebIDLParser.js"></script>
<script src="/resources/idlharness.js"></script>
<script type="text/plain" id="idl">
[Constructor(DOMString value)]
interface CSSKeywordValue : CSSStyleValue {
attribute DOMString value;
};
</script>
<script>
'use strict';
const idlArray = new IdlArray();
idlArray.add_untested_idls('interface CSSStyleValue { stringifier; };');
idlArray.add_idls(document.getElementById('idl').textContent);
idlArray.add_objects({
CSSKeywordValue: ['new CSSKeywordValue("auto")']
});
idlArray.test();
</script>
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment