summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2024-12-12 23:29:14 +0900
committergit <svn-admin@ruby-lang.org>2024-12-12 14:39:20 +0000
commit776ec521480d9523732b96c55af4addfdd007e61 (patch)
tree648bed84d7273f7c9c5ff0e5b8882d8b19596d40 /test
parent20b62ac063e1c490480c7565d442340e39230183 (diff)
[ruby/win32ole] Deprecate old constants in toplevel
https://github.com/ruby/win32ole/commit/eaa1507262
Diffstat (limited to 'test')
-rw-r--r--test/win32ole/test_win32ole.rb5
-rw-r--r--test/win32ole/test_win32ole_event.rb4
-rw-r--r--test/win32ole/test_win32ole_method.rb4
-rw-r--r--test/win32ole/test_win32ole_param.rb4
-rw-r--r--test/win32ole/test_win32ole_record.rb3
-rw-r--r--test/win32ole/test_win32ole_type.rb4
-rw-r--r--test/win32ole/test_win32ole_typelib.rb4
-rw-r--r--test/win32ole/test_win32ole_variable.rb4
-rw-r--r--test/win32ole/test_win32ole_variant.rb4
-rw-r--r--test/win32ole/test_win32ole_variant_m.rb4
10 files changed, 0 insertions, 40 deletions
diff --git a/test/win32ole/test_win32ole.rb b/test/win32ole/test_win32ole.rb
index e6347e89b4..b0c147b311 100644
--- a/test/win32ole/test_win32ole.rb
+++ b/test/win32ole/test_win32ole.rb
@@ -167,11 +167,6 @@ if defined?(WIN32OLE)
assert_instance_of(WIN32OLE, @dict2)
end
- def test_toplevel_constants_backward_compatibility
- assert_equal(WIN32OLE::RuntimeError, ::WIN32OLERuntimeError)
- assert_equal(WIN32OLE::QueryInterfaceError, ::WIN32OLEQueryInterfaceError)
- end
-
def test_s_new_exc
assert_raise(TypeError) {
WIN32OLE.new(1)
diff --git a/test/win32ole/test_win32ole_event.rb b/test/win32ole/test_win32ole_event.rb
index d52f8cf9b3..da3ee8567e 100644
--- a/test/win32ole/test_win32ole_event.rb
+++ b/test/win32ole/test_win32ole_event.rb
@@ -30,10 +30,6 @@ swbemsink_available =
if defined?(WIN32OLE::Event)
class TestWIN32OLE_EVENT < Test::Unit::TestCase
- def test_toplevel_constants_backward_compatibility
- assert_equal(WIN32OLE::Event, ::WIN32OLE_EVENT)
- end
-
def test_s_new_exception
assert_raise(TypeError) {
WIN32OLE::Event.new("A")
diff --git a/test/win32ole/test_win32ole_method.rb b/test/win32ole/test_win32ole_method.rb
index c84c4027ff..4b3e255fdc 100644
--- a/test/win32ole/test_win32ole_method.rb
+++ b/test/win32ole/test_win32ole_method.rb
@@ -20,10 +20,6 @@ if defined?(WIN32OLE::Method)
@m_file_name = WIN32OLE::Method.new(ole_type, "name")
end
- def test_toplevel_constants_backward_compatibility
- assert_equal(WIN32OLE::Method, ::WIN32OLE_METHOD)
- end
-
def test_initialize
ole_type = WIN32OLE::Type.new("Microsoft Shell Controls And Automation", "Shell")
assert_raise(TypeError) {
diff --git a/test/win32ole/test_win32ole_param.rb b/test/win32ole/test_win32ole_param.rb
index 13ca9d0cfb..551da537fc 100644
--- a/test/win32ole/test_win32ole_param.rb
+++ b/test/win32ole/test_win32ole_param.rb
@@ -27,10 +27,6 @@ if defined?(WIN32OLE::Param)
@param_key = m_add.params[0]
end
- def test_constants_backward_compatibility
- assert_equal(WIN32OLE::Param, ::WIN32OLE_PARAM)
- end
-
def test_s_new
assert_raise(ArgumentError) {
WIN32OLE::Param.new("hoge")
diff --git a/test/win32ole/test_win32ole_record.rb b/test/win32ole/test_win32ole_record.rb
index 49205ce53d..2fae16788d 100644
--- a/test/win32ole/test_win32ole_record.rb
+++ b/test/win32ole/test_win32ole_record.rb
@@ -67,9 +67,6 @@ End Class
if defined?(WIN32OLE::Record)
class TestWIN32OLE_RECORD < Test::Unit::TestCase
- def test_toplevel_constants_backward_compatibility
- assert_equal(WIN32OLE::Record, ::WIN32OLE_RECORD)
- end
end
def rbcomtest_exist?
diff --git a/test/win32ole/test_win32ole_type.rb b/test/win32ole/test_win32ole_type.rb
index 9abcd68c9b..df1ba6556c 100644
--- a/test/win32ole/test_win32ole_type.rb
+++ b/test/win32ole/test_win32ole_type.rb
@@ -7,10 +7,6 @@ require "test/unit"
if defined?(WIN32OLE::Type)
class TestWIN32OLE_TYPE < Test::Unit::TestCase
- def test_toplevel_constants_backward_compatibility
- assert_equal(WIN32OLE::Type, ::WIN32OLE_TYPE)
- end
-
def test_s_progids
progids = WIN32OLE::Type.progids
assert_instance_of(Array, progids)
diff --git a/test/win32ole/test_win32ole_typelib.rb b/test/win32ole/test_win32ole_typelib.rb
index 31d6122756..f743ad68f9 100644
--- a/test/win32ole/test_win32ole_typelib.rb
+++ b/test/win32ole/test_win32ole_typelib.rb
@@ -7,10 +7,6 @@ require "test/unit"
if defined?(WIN32OLE::TypeLib)
class TestWIN32OLE_TYPELIB < Test::Unit::TestCase
- def test_toplevel_constants_backward_compatibility
- assert_equal(WIN32OLE::TypeLib, ::WIN32OLE_TYPELIB)
- end
-
def test_s_typelibs
tlibs = WIN32OLE::TypeLib.typelibs
assert_instance_of(Array, tlibs)
diff --git a/test/win32ole/test_win32ole_variable.rb b/test/win32ole/test_win32ole_variable.rb
index 646cf68915..74a6cbd890 100644
--- a/test/win32ole/test_win32ole_variable.rb
+++ b/test/win32ole/test_win32ole_variable.rb
@@ -16,10 +16,6 @@ if defined?(WIN32OLE::Variable)
@var2 = variables.find {|v| v.name == 'UILevel'}
end
- def test_toplevel_constants_backward_compatibility
- assert_equal(WIN32OLE::Variable, ::WIN32OLE_VARIABLE)
- end
-
def test_initialize
assert_raise(TypeError) {WIN32OLE::Variable.new}
end
diff --git a/test/win32ole/test_win32ole_variant.rb b/test/win32ole/test_win32ole_variant.rb
index 13b9a229a5..1837a1e1d6 100644
--- a/test/win32ole/test_win32ole_variant.rb
+++ b/test/win32ole/test_win32ole_variant.rb
@@ -17,10 +17,6 @@ if defined?(WIN32OLE::Variant)
WIN32OLE.locale = @orglocale
end
- def test_toplevel_constants_backward_compatibility
- assert_equal(WIN32OLE::Variant, ::WIN32OLE_VARIANT)
- end
-
def test_s_new
obj = WIN32OLE::Variant.new('foo')
assert_instance_of(WIN32OLE::Variant, obj)
diff --git a/test/win32ole/test_win32ole_variant_m.rb b/test/win32ole/test_win32ole_variant_m.rb
index 3c2884644c..f176d1a51e 100644
--- a/test/win32ole/test_win32ole_variant_m.rb
+++ b/test/win32ole/test_win32ole_variant_m.rb
@@ -9,10 +9,6 @@ if defined?(WIN32OLE::VARIANT)
class TestWin32OLE_VARIANT_MODULE < Test::Unit::TestCase
include WIN32OLE::VARIANT
- def test_toplevel_constants_backward_compatibility
- assert_equal(WIN32OLE::VariantType, WIN32OLE::VARIANT)
- end
-
def test_variant
assert_equal(0, VT_EMPTY)
assert_equal(1, VT_NULL)