Revision 84097c6b8f84bc0d00c208bf7893cd0e10d654d5 authored by John Rummell on 03 September 2018, 12:14:05 UTC, committed by Geoffrey Sneddon on 03 September 2018, 12:14:05 UTC
This test generates a license that expires 1s from the current time, calls
update() with it, and then waits for 5s before calling play(). However,
Chrome caches a few frames in advance of play() being called. Depending on
the time granularity, the CDM may see a valid license and decode part of
the media file.

This change delays calling update() for 2s to ensure that the license has
expired, and ensures that the browser can't cache frames to use when play()
is called.
1 parent e4118eb
Raw File
metadatadisplay-schema-vendor-004.xht
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<!-- THIS FILE WAS AUTOMATICALLY GENERATED, DO NOT EDIT. -->
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<meta http-equiv="content-type" content="text/html;charset=UTF-8"/>
		<title>WOFF Test: More Than One vendor Element</title>
		<link rel="author" title="Tal Leming" href="http://typesupply.com" />
		<link rel="help" href="http://dev.w3.org/webfonts/WOFF2/spec/#Metadata" />
		<link rel="help" href="http://www.w3.org/TR/WOFF/#conform-metadata-noeffect" />
		<link rel="help" href="http://www.w3.org/TR/WOFF/#conform-invalid-mustignore" />
		<link rel="reviewer" title="Chris Lilley" href="mailto:chris@w3.org" />
		<link rel="match" href="metadatadisplay-schema-vendor-004-ref.xht" />
		<meta name="assert" content="The vendor element occurs twice." />
		<style type="text/css"><![CDATA[
			@import url("support/test-fonts.css");
			@font-face {
				font-family: "WOFF Test";
				src: url("support/metadatadisplay-schema-vendor-004.woff2") format("woff2");
			}
			body {
				font-size: 20px;
			}
			pre {
				font-size: 12px;
			}
			.test {
				font-family: "WOFF Test", "WOFF Test CFF Fallback";
				font-size: 200px;
				margin-top: 50px;
			}
		]]></style>
	</head>
	<body>
		<p>If the UA does not display WOFF metadata, the test passes if the word PASS appears below.</p>
		<p>The Extended Metadata Block is not valid and must not be displayed. If the UA does display it, the test fails.</p>
		<div class="test">P</div>
	</body>
</html>
back to top