Index: tests/qunit/wp-includes/js/shortcode.js
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
--- tests/qunit/wp-includes/js/shortcode.js	(revision 28178)
+++ tests/qunit/wp-includes/js/shortcode.js	(revision )
@@ -57,6 +57,16 @@
 		equal( result, undefined, 'foo shortcode not found when escaped with params' );
 	});
 
+	test( 'next() should find shortcodes that are incorrectly escaped by newlines', function() {
+		var result;
+
+		result = wp.shortcode.next( 'foo', "this has the [\n[foo]] shortcode" );
+		equal( result.index, 15, 'shortcode found when incorrectly escaping the start of it' );
+
+		result = wp.shortcode.next( 'foo', 'this has the [[foo]\n] shortcode' );
+		equal( result.index, 13, 'shortcode found when incorrectly escaping the end of it' );
+	});
+
 	test( 'next() should find the second instances of the shortcode when the first one is escaped', function() {
 		var result;
 
