Commit 034a99f914e0d064391136be94991ef5232e284d
1 parent
106d00bf
Exists in
master
and in
29 other branches
tiny_mce: remove tests not valid after update
Showing
1 changed file
with
1 additions
and
12 deletions
Show diff stats
test/unit/tiny_mce_article_test.rb
@@ -9,7 +9,7 @@ class TinyMceArticleTest < ActiveSupport::TestCase | @@ -9,7 +9,7 @@ class TinyMceArticleTest < ActiveSupport::TestCase | ||
9 | end | 9 | end |
10 | attr_reader :profile | 10 | attr_reader :profile |
11 | 11 | ||
12 | - # this test can be removed when we get real tests for TinyMceArticle | 12 | + # this test can be removed when we get real tests for TinyMceArticle |
13 | should 'be an article' do | 13 | should 'be an article' do |
14 | assert_subclass TextArticle, TinyMceArticle | 14 | assert_subclass TextArticle, TinyMceArticle |
15 | end | 15 | end |
@@ -44,11 +44,6 @@ class TinyMceArticleTest < ActiveSupport::TestCase | @@ -44,11 +44,6 @@ class TinyMceArticleTest < ActiveSupport::TestCase | ||
44 | assert(article.body.is_utf8?, "%s expected to be valid UTF-8 content" % article.body.inspect) | 44 | assert(article.body.is_utf8?, "%s expected to be valid UTF-8 content" % article.body.inspect) |
45 | end | 45 | end |
46 | 46 | ||
47 | - should 'fix tinymce mess with itheora comments for IE from tiny mce article body' do | ||
48 | - article = create(TinyMceArticle, :profile => profile, :name => 'article', :abstract => 'abstract', :body => "the <!--–-[if IE]--> just for ie... <!--[endif]-->") | ||
49 | - assert_equal "the <!–-[if IE]> just for ie... <![endif]-–>", article.body.html_safe | ||
50 | - end | ||
51 | - | ||
52 | should 'remove iframe if it is not from a trusted site' do | 47 | should 'remove iframe if it is not from a trusted site' do |
53 | article = create(TinyMceArticle, :profile => profile, :name => 'article', :abstract => 'abstract', :body => "<iframe src='http://anything/videos.ogg'></iframe>") | 48 | article = create(TinyMceArticle, :profile => profile, :name => 'article', :abstract => 'abstract', :body => "<iframe src='http://anything/videos.ogg'></iframe>") |
54 | assert_equal "", article.body | 49 | assert_equal "", article.body |
@@ -94,12 +89,6 @@ class TinyMceArticleTest < ActiveSupport::TestCase | @@ -94,12 +89,6 @@ class TinyMceArticleTest < ActiveSupport::TestCase | ||
94 | assert_equal '', article.body | 89 | assert_equal '', article.body |
95 | end | 90 | end |
96 | 91 | ||
97 | - #TinymMCE convert config={"key":(.*)} in config={"key":(.*)} | ||
98 | - should 'not replace " with &quot; when adding an Archive.org video' do | ||
99 | - article = create(TinyMceArticle, :profile => profile, :name => 'article', :abstract => 'abstract', :body => "<embed flashvars='config={"key":"\#$b6eb72a0f2f1e29f3d4"}'> </embed>") | ||
100 | - assert_equal "<embed flashvars=\"config={"key":"\#$b6eb72a0f2f1e29f3d4"}\"> </embed>", article.body | ||
101 | - end | ||
102 | - | ||
103 | should 'not sanitize html comments' do | 92 | should 'not sanitize html comments' do |
104 | article = TinyMceArticle.new | 93 | article = TinyMceArticle.new |
105 | article.body = '<p><!-- <asdf> << aasdfa >>> --> <h1> Wellformed html code </h1>' | 94 | article.body = '<p><!-- <asdf> << aasdfa >>> --> <h1> Wellformed html code </h1>' |