add test for style and text mode

Review URL: https://chromiumcodereview.appspot.com//13529024