From 634f635f16bd9d7eb78109ddb54cab83c375ac18 Mon Sep 17 00:00:00 2001
From: Jacques Distler
Date: Wed, 13 May 2009 01:44:47 -0500
Subject: [PATCH] Update one Unit Test
To match the new behaviour of Revision 387.
---
test/unit/page_renderer_test.rb | 11 +++++++----
1 file changed, 7 insertions(+), 4 deletions(-)
diff --git a/test/unit/page_renderer_test.rb b/test/unit/page_renderer_test.rb
index d5791cea..8479bfe7 100644
--- a/test/unit/page_renderer_test.rb
+++ b/test/unit/page_renderer_test.rb
@@ -1,3 +1,6 @@
+#!/usr/bin/env ruby
+# encoding: UTF-8
+
require File.expand_path(File.dirname(__FILE__) + '/../test_helper')
class PageRendererTest < ActiveSupport::TestCase
@@ -156,7 +159,7 @@ END_THM
%{xmlns='http://www.w3.org/1998/Math/MathML'>sin} +
%{(x)} +
%{} +
- %{\\sin(x) \\begin{svg}\\end{svg}
},
+ %{\\sin(x) \\begin{svg}<svg/>\\end{svg}},
"$$\\sin(x) \\begin{svg}\\end{svg}$$")
code_block = [
@@ -228,13 +231,13 @@ END_THM
re = Regexp.new(
%{equation
})
+ %{55555555555556ex; height: 2\.33333333333333ex;'/>
})
assert_match_markup_parsed_as(re, 'equation $a\sin(\theta)$')
re = Regexp.new(
%{a\\\\sin} +
+ %{class='maruku-png' src='\.\./files/pngs/\\w+\.png' style='height: 2\.333333333} +
+ %{33333ex;'/>a\\\\sin} +
%{\\(\\\\theta\\)<\/code><\/span><\/div>})
assert_match_markup_parsed_as(re, '$$a\sin(\theta)$$')