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
header-reserved-001-ref.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: Header Reserved Invalid Value</title>
		<link rel="author" title="Tal Leming" href="http://typesupply.com" />
		<link rel="help" href="http://dev.w3.org/webfonts/WOFF2/spec/#woff20Header" />
		<link rel="help" href="http://dev.w3.org/webfonts/WOFF2/spec/#conform-mustNotUseReservedValue" />
		<link rel="reviewer" title="Chris Lilley" href="mailto:chris@w3.org" />
		<meta name="assert" content="The reserved field contains 1." />
		<style type="text/css"><![CDATA[
			@import url("support/test-fonts.css");
			body {
				font-size: 20px;
			}
			pre {
				font-size: 12px;
			}
			.test {
				font-family: "WOFF Test CFF Reference";
				font-size: 200px;
				margin-top: 50px;
			}
		]]></style>
	</head>
	<body>
		<p>Test passes if the word PASS appears below.</p>
		<div class="test">P</div>
	</body>
</html>
back to top