2012-06-03 20:33:52 +04:00
|
|
|
<!--
|
|
|
|
Any copyright is dedicated to the Public Domain.
|
|
|
|
http://creativecommons.org/publicdomain/zero/1.0/
|
|
|
|
-->
|
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<title>File Handle Test</title>
|
|
|
|
|
|
|
|
<script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
|
|
|
|
<link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
|
|
|
|
|
2017-02-23 00:10:07 +03:00
|
|
|
<script type="text/javascript">
|
2017-05-10 19:05:18 +03:00
|
|
|
/* import-globals-from file.js */
|
|
|
|
/* import-globals-from helpers.js */
|
2017-02-24 13:41:59 +03:00
|
|
|
function* testSteps()
|
2012-06-03 20:33:52 +04:00
|
|
|
{
|
|
|
|
let id = getFileId(null);
|
|
|
|
ok(id == -1, "Correct id");
|
|
|
|
|
|
|
|
id = getFileId(getRandomBlob(100));
|
|
|
|
ok(id == -1, "Correct id");
|
|
|
|
|
|
|
|
finishTest();
|
2013-07-11 01:52:35 +04:00
|
|
|
yield undefined;
|
2012-06-03 20:33:52 +04:00
|
|
|
}
|
|
|
|
</script>
|
2017-02-23 00:10:07 +03:00
|
|
|
<script type="text/javascript" src="file.js"></script>
|
|
|
|
<script type="text/javascript" src="helpers.js"></script>
|
2012-06-03 20:33:52 +04:00
|
|
|
|
|
|
|
</head>
|
|
|
|
|
|
|
|
<body onload="runTest();"></body>
|
|
|
|
|
|
|
|
</html>
|