mirror of
https://github.com/servo/servo
synced 2026-05-14 10:56:44 +02:00
- Update CSS tests to revision e05bfd5e30ed662c2f8a353577003f8eed230180. - Update web-platform-tests to revision a052787dd5c069a340031011196b73affbd68cd9.
21 lines
721 B
HTML
21 lines
721 B
HTML
<!DOCTYPE html>
|
|
<meta charset="utf-8">
|
|
<title>FileAPI Test: Creating Blob URL with Blob</title>
|
|
<link rel="author" title="Intel" href="http://www.intel.com">
|
|
<link rel="author" title="JunChen Xia" href="mailto:xjconlyme@gmail.com">
|
|
<script src="/resources/testharness.js"></script>
|
|
<script src="/resources/testharnessreport.js"></script>
|
|
|
|
<div id="log"></div>
|
|
|
|
<script>
|
|
var blob = new Blob(["Test Blob"]);
|
|
|
|
test(function() {
|
|
var testBlob = window.URL.createObjectURL(blob);
|
|
assert_equals(typeof testBlob, "string", "Blob URI is typeof string");
|
|
assert_equals(testBlob.indexOf("blob"), 0, "Blob URI starts with 'blob'");
|
|
}, "Check if the Blob URI starts with 'blob' using createObjectURL()");
|
|
</script>
|
|
|