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

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

Issue 1993523002: Move the WebIDL directory from web-platform-tests/ to wpt/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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
(Empty)
1 <!doctype html>
2 <meta charset="utf-8">
3 <title>Interface objects</title>
4 <script src="../../../../resources/testharness.js"></script>
5 <script src="../../../../resources/testharnessreport.js"></script>
6 <script>
7 test(function () {
8 assert_equals(typeof window.Blob, "function")
9 delete window.Blob;
10 assert_equals(window.Blob, undefined);
11 }, "An interface object deleted after it has been accessed is undefined");
12
13 test(function () {
14 delete window.File;
15 assert_equals(window.File, undefined);
16 }, "An interface object deleted before it has been defined is undefined");
17
18 test(function () {
19 delete window.ImageData;
20 assert_equals(Object.getOwnPropertyDescriptor(window, "ImageData"), undefine d);
21 delete window.ImageData;
22 assert_equals(Object.getOwnPropertyDescriptor(window, "ImageData"), undefine d);
23 }, "Interface objects deleted multiple times stay deleted");
24
25 test(function () {
26 assert_equals(window["abc\udc88"], undefined);
27 }, "Fancy property names don't break the resolve hook on Window");
28 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698