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

Unified Diff: third_party/WebKit/LayoutTests/fast/domurl/resources/testharness-extras.js

Issue 1442643008: Implement 'URLSearchParams' (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nits Created 5 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/fast/domurl/resources/testharness-extras.js
diff --git a/third_party/WebKit/LayoutTests/fast/domurl/resources/testharness-extras.js b/third_party/WebKit/LayoutTests/fast/domurl/resources/testharness-extras.js
new file mode 100644
index 0000000000000000000000000000000000000000..c812ca64d19bed926a032684e2ed95f43fc9847f
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/domurl/resources/testharness-extras.js
@@ -0,0 +1,11 @@
+/*
+Extending the W3C testharness.js with locally useful functionality.
+*/
+
+function assert_type_error(f, msg) {
+ assert_throws(TypeError(), f, msg);
+}
+
+function assert_syntax_error(f, msg) {
philipj_slow 2015/11/16 12:47:08 This is never used and assert_type_error() is only
Mike West 2015/11/17 10:23:25 ok.
+ assert_throws(SyntaxError(), f, msg);
+}

Powered by Google App Engine
This is Rietveld 408576698