Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(349)

Side by Side Diff: third_party/WebKit/LayoutTests/imported/wpt/WebIDL/ecmascript-binding/interface-object.html

Issue 2018873002: Fix testharness paths in imported/wpt/* except dom and html. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 <!doctype html> 1 <!doctype html>
2 <meta charset="utf-8"> 2 <meta charset="utf-8">
3 <title>Interface objects</title> 3 <title>Interface objects</title>
4 <script src="../../../../resources/testharness.js"></script> 4 <script src="/resources/testharness.js"></script>
5 <script src="../../../../resources/testharnessreport.js"></script> 5 <script src="/resources/testharnessreport.js"></script>
6 <script> 6 <script>
7 test(function () { 7 test(function () {
8 assert_equals(typeof window.Blob, "function") 8 assert_equals(typeof window.Blob, "function")
9 delete window.Blob; 9 delete window.Blob;
10 assert_equals(window.Blob, undefined); 10 assert_equals(window.Blob, undefined);
11 }, "An interface object deleted after it has been accessed is undefined"); 11 }, "An interface object deleted after it has been accessed is undefined");
12 12
13 test(function () { 13 test(function () {
14 delete window.File; 14 delete window.File;
15 assert_equals(window.File, undefined); 15 assert_equals(window.File, undefined);
16 }, "An interface object deleted before it has been defined is undefined"); 16 }, "An interface object deleted before it has been defined is undefined");
17 17
18 test(function () { 18 test(function () {
19 delete window.ImageData; 19 delete window.ImageData;
20 assert_equals(Object.getOwnPropertyDescriptor(window, "ImageData"), undefine d); 20 assert_equals(Object.getOwnPropertyDescriptor(window, "ImageData"), undefine d);
21 delete window.ImageData; 21 delete window.ImageData;
22 assert_equals(Object.getOwnPropertyDescriptor(window, "ImageData"), undefine d); 22 assert_equals(Object.getOwnPropertyDescriptor(window, "ImageData"), undefine d);
23 }, "Interface objects deleted multiple times stay deleted"); 23 }, "Interface objects deleted multiple times stay deleted");
24 24
25 test(function () { 25 test(function () {
26 assert_equals(window["abc\udc88"], undefined); 26 assert_equals(window["abc\udc88"], undefined);
27 }, "Fancy property names don't break the resolve hook on Window"); 27 }, "Fancy property names don't break the resolve hook on Window");
28 </script> 28 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698