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

Unified Diff: test_wrapper.js

Issue 29333474: Issue 4125 - [emscripten] Convert filter classes to C++ (Closed)
Patch Set: Addressed Sergei`s comments again and added some asserts Created Feb. 23, 2016, 12:30 p.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
« compiled/debug.h ('K') | « test/regexpFilters_matching.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test_wrapper.js
===================================================================
--- a/test_wrapper.js
+++ b/test_wrapper.js
@@ -1,5 +1,22 @@
"use strict";
-require("node-babel")();
+require("node-babel")({
+ ignore: /\bcompiled\b/,
+ blacklist: ["useStrict"]
+});
+
+// TEMPORARY HACK: Establish filterClassesNew as an alias for filterClasses for
+// now, in order to allow testing both in parallel.
+let nodeModule = require("module");
+let origResolve = nodeModule._resolveFilename;
+nodeModule._resolveFilename = function()
+{
+ let params = Array.slice(arguments);
+ if (params[0] == "filterClasses")
+ params[0] = "filterClassesNew";
+ else if (params[0] == "../lib/filterClasses")
+ params[0] = "../lib/filterClassesNew";
+ return origResolve.apply(this, params);
+};
require("./node_modules/.bin/nodeunit");
« compiled/debug.h ('K') | « test/regexpFilters_matching.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld