diff --git a/js/tests/roundtrip-test.js b/js/tests/roundtrip-test.js
index <HASH>..<HASH> 100755
--- a/js/tests/roundtrip-test.js
+++ b/js/tests/roundtrip-test.js
@@ -422,6 +422,7 @@ var fetch = function ( page, cb, options ) {
 	if ( options.apiURL ) {
 		parsoidConfig.setInterwiki( 'customwiki', options.apiURL );
 	}
+	parsoidConfig.editMode = Util.booleanOption( options.editMode );
 
 	MWParserEnvironment.getParserEnv( parsoidConfig, null, prefix, page, envCb );
 };
@@ -471,6 +472,11 @@ if ( !module.parent ) {
 			'boolean': true,
 			'default': false
 		},
+		'editMode': {
+			description: 'Test in edit-mode (changes some parse & serialization strategies)',
+			'default': false, // suppress noise by default
+			'boolean': true
+		},
 		'debug': {
 			description: 'Debug mode',
 			'boolean': true,
Add --editMode option to roundtrip-test.js.

Usually you don't want the noise, but turning on --editMode can help unearth
crashers in html2wt.

Change-Id: I<I>c0fc0dc4e<I>f<I>c8b<I>b<I>df<I>da4a3dc