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

Unified Diff: third_party/WebKit/LayoutTests/imported/wpt/console/console-is-a-namespace.any.js

Issue 2517743002: Import wpt@5a1f188e0536ad023936cc62f9a00617299dc192 (Closed)
Patch Set: rebased Created 4 years, 1 month 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/imported/wpt/console/console-is-a-namespace.any.js
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/console/console-is-a-namespace.any.js b/third_party/WebKit/LayoutTests/imported/wpt/console/console-is-a-namespace.any.js
deleted file mode 100644
index a4aae7ffce8ac81947ab092089aefb80b117c86e..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/imported/wpt/console/console-is-a-namespace.any.js
+++ /dev/null
@@ -1,27 +0,0 @@
-"use strict";
-// https://heycam.github.io/webidl/#es-namespaces
-// https://console.spec.whatwg.org/#console-namespace
-
-test(() => {
- assert_true(self.hasOwnProperty("console"));
-}, "console exists on the global object");
-
-test(() => {
- const propDesc = Object.getOwnPropertyDescriptor(self, "console");
- assert_equals(propDesc.writable, true, "must be writable");
- assert_equals(propDesc.enumerable, false, "must not be enumerable");
- assert_equals(propDesc.configurable, true, "must be configurable");
- assert_equals(propDesc.value, console, "must have the right value");
-}, "console has the right property descriptors");
-
-test(() => {
- assert_false("Console" in self);
-}, "Console (uppercase, as if it were an interface) must not exist");
-
-test(() => {
- const prototype1 = Object.getPrototypeOf(console);
- const prototype2 = Object.getPrototypeOf(prototype1);
-
- assert_equals(Object.getOwnPropertyNames(prototype1).length, 0, "The [[Prototype]] must have no properties");
- assert_equals(prototype2, Object.prototype, "The [[Prototype]]'s [[Prototype]] must be %ObjectPrototype%");
-}, "The prototype chain must be correct");

Powered by Google App Engine
This is Rietveld 408576698