summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorRich Trott <rtrott@gmail.com>2018-10-08 13:20:49 -0700
committerRich Trott <rtrott@gmail.com>2018-10-10 15:07:50 -0700
commit8a0cc7afc3878b437845fa655869bd636aba9fdb (patch)
tree528baf1e09528be564bcee6a7c46061d173941fa /test
parent39490798ba9198f65cee4b8a13e74a5019ab12d3 (diff)
downloadandroid-node-v8-8a0cc7afc3878b437845fa655869bd636aba9fdb.tar.gz
android-node-v8-8a0cc7afc3878b437845fa655869bd636aba9fdb.tar.bz2
android-node-v8-8a0cc7afc3878b437845fa655869bd636aba9fdb.zip
test: separate WPT console test from other test
Remove one test from test-whatwg-console-is-a-namespace that is not part of the WPT test. Put it in test-console-self-assign. PR-URL: https://github.com/nodejs/node/pull/23340 Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Diffstat (limited to 'test')
-rw-r--r--test/parallel/test-console-self-assign.js6
-rw-r--r--test/parallel/test-whatwg-console-is-a-namespace.js3
2 files changed, 6 insertions, 3 deletions
diff --git a/test/parallel/test-console-self-assign.js b/test/parallel/test-console-self-assign.js
new file mode 100644
index 0000000000..53c54ab9a3
--- /dev/null
+++ b/test/parallel/test-console-self-assign.js
@@ -0,0 +1,6 @@
+'use strict';
+
+require('../common');
+
+// Assigning to itself should not throw.
+global.console = global.console; // eslint-disable-line no-self-assign
diff --git a/test/parallel/test-whatwg-console-is-a-namespace.js b/test/parallel/test-whatwg-console-is-a-namespace.js
index 8266541187..fb28e751a3 100644
--- a/test/parallel/test-whatwg-console-is-a-namespace.js
+++ b/test/parallel/test-whatwg-console-is-a-namespace.js
@@ -5,9 +5,6 @@ require('../common');
const { test, assert_equals, assert_true, assert_false } =
require('../common/wpt');
-// Assigning to itself should not throw.
-global.console = global.console; // eslint-disable-line no-self-assign
-
const self = global;
/* eslint-disable quotes, max-len */