https://github.com/web-platform-tests/wpt
Revision 017de5e2eb6f68de296052e957a72417e2aa13f4 authored by Hwanseung Lee on 20 March 2018, 00:47:12 UTC, committed by Chromium WPT Sync on 20 March 2018, 00:47:12 UTC
pointer-events[1] are added to support in whitelist.
there are some camelcase keywords in pointer-events.
actually pre-defined keywords are interpreted
ASCII case-insensitively[2].
so it was changed to accept camelcase keyword in tests.
and test file are also added.

[1]https://svgwg.org/svg2-draft/interact.html#PointerEventsProperty
[2]https://drafts.csswg.org/css-values-4/#keywords

Bug: 820299
Change-Id: Iccc0f88a69bbec68964ef55bcc5c471fea765ccf
Reviewed-on: https://chromium-review.googlesource.com/968581
Reviewed-by: Darren Shen <shend@chromium.org>
Commit-Queue: Hwanseung Lee <hwanseung@chromium.org>
Cr-Commit-Position: refs/heads/master@{#544232}
1 parent 3ec34e5
Raw File
Tip revision: 017de5e2eb6f68de296052e957a72417e2aa13f4 authored by Hwanseung Lee on 20 March 2018, 00:47:12 UTC
[css-typed-om] support pointer-events property
Tip revision: 017de5e
idlharness.html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>User Timing IDL tests</title>
<link rel="author" title="W3C" href="http://www.w3.org/" />
<link rel="help" href="http://www.w3.org/TR/user-timing/#extensions-performance-interface"/>
<link rel="help" href="http://www.w3.org/TR/user-timing/#performancemark"/>
<link rel="help" href="http://www.w3.org/TR/user-timing/#performancemeasure"/>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/resources/WebIDLParser.js"></script>
<script src="/resources/idlharness.js"></script>
</head>
<body>
<h1>User Timing IDL tests</h1>
<div id="log"></div>

<pre id='untested_idl' style='display:none'>
[Exposed=(Window,Worker)]
interface Performance {
};

[Exposed=(Window,Worker)]
interface PerformanceEntry {
};
</pre>

<pre id='idl'>
partial interface Performance {
    void mark(DOMString markName);
    void clearMarks(optional  DOMString markName);

    void measure(DOMString measureName, optional DOMString startMark, optional DOMString endMark);
    void clearMeasures(optional DOMString measureName);
};

[Exposed=(Window,Worker)]
interface PerformanceMark : PerformanceEntry {
};

[Exposed=(Window,Worker)]
interface PerformanceMeasure : PerformanceEntry {
};

</pre>

<script>

(function() {
  var idl_array = new IdlArray();

  idl_array.add_untested_idls(document.getElementById("untested_idl").textContent);
  idl_array.add_idls(document.getElementById("idl").textContent);

  idl_array.add_objects({Performance: ["window.performance"]});

  idl_array.test();
})();

</script>
</body>
</html>
back to top