aboutsummaryrefslogtreecommitdiffstats
path: root/test/rexml/test_notationdecl_parsetest.rb
diff options
context:
space:
mode:
authorkou <kou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-07-31 13:58:49 +0000
committerkou <kou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-07-31 13:58:49 +0000
commit6668c32a7e1475e372bf6bb4defe13dfa64393f7 (patch)
tree8618100b7fbdd3fcd907c3c09db4c29fdc44fe8f /test/rexml/test_notationdecl_parsetest.rb
parent6b4a6fcbbf286ee4b436b168b2fca186302cbb44 (diff)
downloadruby-6668c32a7e1475e372bf6bb4defe13dfa64393f7.tar.gz
* test/rexml/test_notationdecl_parsetest.rb: Rename to ...
* test/rexml/parse/test_notation_declaration.rb: ... this. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42289 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/rexml/test_notationdecl_parsetest.rb')
-rw-r--r--test/rexml/test_notationdecl_parsetest.rb77
1 files changed, 0 insertions, 77 deletions
diff --git a/test/rexml/test_notationdecl_parsetest.rb b/test/rexml/test_notationdecl_parsetest.rb
deleted file mode 100644
index cd3576708d..0000000000
--- a/test/rexml/test_notationdecl_parsetest.rb
+++ /dev/null
@@ -1,77 +0,0 @@
-require 'test/unit'
-require 'rexml/document'
-
-class TestNotationDecl < Test::Unit::TestCase
- private
- def xml(internal_subset)
- <<-XML
-<!DOCTYPE r SYSTEM "urn:x-henrikmartensson:test" [
-#{internal_subset}
-]>
-<r/>
- XML
- end
-
- def parse(internal_subset)
- REXML::Document.new(xml(internal_subset)).doctype
- end
-
- class TestCommon < self
- def test_name
- doctype = parse("<!NOTATION name PUBLIC 'urn:public-id'>")
- assert_equal("name", doctype.notation("name").name)
- end
- end
-
- class TestExternalID < self
- class TestSystem < self
- def test_single_quote
- doctype = parse(<<-INTERNAL_SUBSET)
-<!NOTATION name SYSTEM 'system-literal'>
- INTERNAL_SUBSET
- assert_equal("system-literal", doctype.notation("name").system)
- end
-
- def test_double_quote
- doctype = parse(<<-INTERNAL_SUBSET)
-<!NOTATION name SYSTEM "system-literal">
- INTERNAL_SUBSET
- assert_equal("system-literal", doctype.notation("name").system)
- end
- end
-
- class TestPublic < self
- class TestPublicIDLiteral < self
- def test_single_quote
- doctype = parse(<<-INTERNAL_SUBSET)
-<!NOTATION name PUBLIC 'public-id-literal' "system-literal">
- INTERNAL_SUBSET
- assert_equal("public-id-literal", doctype.notation("name").public)
- end
-
- def test_double_quote
- doctype = parse(<<-INTERNAL_SUBSET)
-<!NOTATION name PUBLIC "public-id-literal" "system-literal">
- INTERNAL_SUBSET
- assert_equal("public-id-literal", doctype.notation("name").public)
- end
- end
-
- class TestSystemLiteral < self
- def test_single_quote
- doctype = parse(<<-INTERNAL_SUBSET)
-<!NOTATION name PUBLIC "public-id-literal" 'system-literal'>
- INTERNAL_SUBSET
- assert_equal("system-literal", doctype.notation("name").system)
- end
-
- def test_double_quote
- doctype = parse(<<-INTERNAL_SUBSET)
-<!NOTATION name PUBLIC "public-id-literal" "system-literal">
- INTERNAL_SUBSET
- assert_equal("system-literal", doctype.notation("name").system)
- end
- end
- end
- end
-end