Index: tests/phpunit/tests/formatting/Autop.php
===================================================================
--- tests/phpunit/tests/formatting/Autop.php	(revision 30050)
+++ tests/phpunit/tests/formatting/Autop.php	(working copy)
@@ -400,4 +400,67 @@
 
 		$this->assertEquals( $expected, trim( wpautop( $content ) ) );
 	}
+	
+	/**
+	 * ticket 3833
+	 */
+	function test_autop_blockquote_p() {
+		$input = "<blockquote>This is a blockquote</blockquote>";
+		$expected = "<blockquote><p>This is a blockquote</p></blockquote>";
+		$this->assertEquals( $expected, trim( wpautop( $input ) ) );
+	}
+
+	/**
+	 * @ticket 3833
+	 */
+	function test_autop_content_before() {
+		$input = <<<EOF
+text before    <div class="whatever"><blockquote>
+text inside the blockquote tag
+</blockquote>
+Some text inside the div embedding the blockquote and after the closing blockquote tag
+</div>
+EOF;
+
+		$expected = <<<EOF
+<p>text before</p>
+<div class="whatever">
+<blockquote>
+<p>text inside the blockquote tag</p>
+</blockquote>
+<p>Some text inside the div embedding the blockquote and after the closing blockquote tag</p>
+</div>
+
+EOF;
+	$this->assertEquals( $expected, wpautop( $input ) );
+	}
+
+	/**
+	 * @ticket 25785
+	 */
+	function test_div_with_multiple_p() {
+		$input = "<div>Insert FIRST PARAGRAPH here.
+
+Insert SECOND PARAGRAPH here.</div>";
+		$expected = <<<EOF
+<div>
+<p>Insert FIRST PARAGRAPH here.</p>
+<p>Insert SECOND PARAGRAPH here.</p>
+</div>
+EOF;
+		$this->assertEquals( $expected, trim( wpautop( $input ) ) );
+	}
+
+	/**
+	 * @ticket 27350
+	 */
+	function test_wpautop_div_with_pre() {
+		$input = "hello<div>test</div>";
+		$expected = <<<EOF
+<p>hello</p>
+<div>test</div>
+
+EOF;
+	$this->assertEquals( $expected, wpautop( $input ) );
+	}
 }
