| Index: third_party/WebKit/LayoutTests/fast/domurl/url-constructor.html
|
| diff --git a/third_party/WebKit/LayoutTests/fast/domurl/url-constructor.html b/third_party/WebKit/LayoutTests/fast/domurl/url-constructor.html
|
| index 0128c0c561a14ee99ec47b0e3d5f4731667683cb..4660229473dbcf1e613768c046478b6442004b62 100644
|
| --- a/third_party/WebKit/LayoutTests/fast/domurl/url-constructor.html
|
| +++ b/third_party/WebKit/LayoutTests/fast/domurl/url-constructor.html
|
| @@ -53,4 +53,31 @@ test(function() {
|
| function() { new URL('//abc', null); },
|
| 'TypeError: Failed to construct \'URL\': Invalid base URL');
|
| }, 'Invalid URL parameters');
|
| +
|
| +test(function() {
|
| + function assert_enumerable(p) {
|
| + assert_true(p in URL.prototype);
|
| + assert_true(URL.prototype.propertyIsEnumerable(p));
|
| + }
|
| +
|
| + assert_true('URL' in self);
|
| +
|
| + // TODO: uncomment when implemented.
|
| + // assert_true('domainToASCII' in URL);
|
| + // assert_true('domainToUnicode' in URL);
|
| +
|
| + // Arguably better failure stacks to spell them out this way..
|
| + assert_enumerable('toString');
|
| + assert_enumerable('origin');
|
| + assert_enumerable('protocol');
|
| + assert_enumerable('username');
|
| + assert_enumerable('password');
|
| + assert_enumerable('host');
|
| + assert_enumerable('hostname');
|
| + assert_enumerable('port');
|
| + assert_enumerable('pathname');
|
| + assert_enumerable('search');
|
| + assert_enumerable('searchParams');
|
| + assert_enumerable('hash');
|
| +}, 'URL interface');
|
| </script>
|
|
|