1 require File.dirname(__FILE__) + '/../test_helper'
3 class Ohcount::MxmlTest < Ohcount::Test
5 verify_parse("mxml1.mxml")
8 def test_comment_entities
9 assert_equal('<!--comment-->', entities_array(" <!--comment-->", 'mxml', :comment).first)
10 assert_equal('/*comment*/', entities_array("<mx:Style>\n/*comment*/\n</mx:Style>", 'mxml', :comment).first)
11 assert_equal('//comment', entities_array("<mx:Script>\n//comment\n</mx:Script>", 'mxml', :comment).first)
12 assert_equal('/*comment*/', entities_array("<mx:Script>\n/*comment*/\n</mx:Script>", 'mxml', :comment).first)