     it 'creates highlighter element', ->
       expect(highlighter.length).to.equal 1
 
-    describe 'highlighted element', ->
-      it 'has gutter', ->
-        expect(highlighter).to.have 'td.gutter'
+    describeHighlightedElement()
 
-      it 'has code', ->
-        expect(highlighter).to.have 'td.code'
-
-      it 'has keywords', ->
-        expect(highlighter).to.have '.line.number1 > code.compat.keyword:contains(hello)'
-        expect(highlighter).to.have '.line.number1 > code.compat.keyword:contains(world)'
+    describe 'class names', ->
+      it 'applies brush name', ->
+        expect(highlighter).to.have 'td.code .line.number1 > code.compat.keyword:contains(hello)'
 
   describe 'html-script brush', ->
     before ->
-      pre = $ '<pre class="brush: compat-html; html-script: true">world &lt;script>&lt;?= world ?>&lt;/script></pre>'
+      pre = $ '<pre class="brush: compat-html; html-script: true">world &lt;script>&lt;?= hello world ?>&lt;/script>\nhow are you?</pre>'
       $(document.body).append pre
       SyntaxHighlighter.highlight()
       highlighter = $ '.syntaxhighlighter'

describe '3.x-compat/smoke_check', ->
  pre = highlighter = null

  describe 'regular brush', ->
    before ->
      pre = $ '<pre class="brush: compat">hello world</pre>'
      $(document.body).append pre
      SyntaxHighlighter.highlight()
      highlighter = $ '.syntaxhighlighter'

    it 'creates highlighter element', ->
      expect(highlighter.length).to.equal 1

    describeHighlightedElement()

    describe 'class names', ->
      it 'applies htmlscript class name', ->
        expect(highlighter).to.have 'td.code .line.number1 > .htmlscript.keyword:contains(script)'

      it 'applies brush name', ->
        expect(highlighter).to.have 'td.code .line.number1 > code.compathtml.keyword:contains(hello)'
