Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: qunit/tests/url.js

Issue 29581937: Noissue - Use anonymous blocks instead of anonymous functions (Closed) Base URL: https://hg.adblockplus.org/adblockpluschrome/
Patch Set: Created Oct. 18, 2017, 2:10 a.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « qunit/tests/prefs.js ('k') | qunit/tests/versionComparator.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: qunit/tests/url.js
===================================================================
--- a/qunit/tests/url.js
+++ b/qunit/tests/url.js
@@ -12,17 +12,16 @@
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with Adblock Plus. If not, see <http://www.gnu.org/licenses/>.
*/
"use strict";
-(function()
{
let {getDecodedHostname,
extractHostFromFrame,
stringifyURL,
isThirdParty} = require("url");
module("URL/host tools");
@@ -174,9 +173,9 @@
"[::ffff:192.0.2.128]", "[::ffff:192.1.2.128]", true,
"different IPv4-mapped IPv6 address is third-party"
);
testThirdParty("xn--f-1gaa.com", "f\u00f6\u00f6.com", false,
"same IDN isn't third-party");
testThirdParty("example.com..", "example.com....", false,
"traling dots are ignored");
});
-}());
+}
« no previous file with comments | « qunit/tests/prefs.js ('k') | qunit/tests/versionComparator.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld