summaryrefslogtreecommitdiff
path: root/src/scripts
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@samsung.com>2019-02-21 18:19:45 +0100
committerXavi Artigas <xavierartigas@yahoo.es>2019-02-21 18:43:12 +0100
commitf886941b112573664598808ab0493e83126ea2bb (patch)
tree80e9b2f2114101f180207bac4c5c218b0425e10a /src/scripts
parent94efabedf6475a665352ff30f4b869c5a310eb40 (diff)
api: efl.gfx.size_hints -> efl.gfx.hints
Summary: these hints are not strictly size-related, so renaming them is more consistent with their actual function ref T7563 Depends on D7968 Reviewers: segfaultxavi, cedric, bu5hm4n Subscribers: segfaultxavi, cedric, #reviewers, #committers Tags: #efl Maniphest Tasks: T7563 Differential Revision: https://phab.enlightenment.org/D7977
Diffstat (limited to 'src/scripts')
-rwxr-xr-xsrc/scripts/pyolian/test_eolian.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/scripts/pyolian/test_eolian.py b/src/scripts/pyolian/test_eolian.py
index 23f172c4c3..2a30cbeefe 100755
--- a/src/scripts/pyolian/test_eolian.py
+++ b/src/scripts/pyolian/test_eolian.py
@@ -477,12 +477,12 @@ class TestEolianVariable(unittest.TestCase):
477 self.assertIsNone(var.value) # TODO is None correct here? no value? 477 self.assertIsNone(var.value) # TODO is None correct here? no value?
478 478
479 def test_variable_constant(self): 479 def test_variable_constant(self):
480 var = eolian_db.constant_by_name_get('Efl.Gfx.Size_Hint_Fill') 480 var = eolian_db.constant_by_name_get('Efl.Gfx.Hint_Fill')
481 self.assertIsInstance(var, eolian.Variable) 481 self.assertIsInstance(var, eolian.Variable)
482 self.assertEqual(var.name, 'Efl.Gfx.Size_Hint_Fill') 482 self.assertEqual(var.name, 'Efl.Gfx.Hint_Fill')
483 self.assertEqual(var.short_name, 'Size_Hint_Fill') 483 self.assertEqual(var.short_name, 'Size_Hint_Fill')
484 self.assertEqual(var.type, eolian.Eolian_Variable_Type.CONSTANT) 484 self.assertEqual(var.type, eolian.Eolian_Variable_Type.CONSTANT)
485 self.assertEqual(var.file, 'efl_gfx_size_hint.eo') 485 self.assertEqual(var.file, 'efl_gfx_hint.eo')
486 self.assertFalse(var.is_extern) 486 self.assertFalse(var.is_extern)
487 self.assertEqual(list(var.namespaces), ['Efl','Gfx']) 487 self.assertEqual(list(var.namespaces), ['Efl','Gfx'])
488 self.assertIsInstance(var.documentation, eolian.Documentation) 488 self.assertIsInstance(var.documentation, eolian.Documentation)
@@ -634,7 +634,7 @@ class TestEolianExpression(unittest.TestCase):
634 self.assertEqual(exp.serialize, '100') 634 self.assertEqual(exp.serialize, '100')
635 635
636 def test_expression_unary(self): 636 def test_expression_unary(self):
637 var = eolian_db.constant_by_name_get('Efl.Gfx.Size_Hint_Fill') 637 var = eolian_db.constant_by_name_get('Efl.Gfx.Hint_Fill')
638 exp = var.value 638 exp = var.value
639 self.assertIsInstance(exp, eolian.Expression) 639 self.assertIsInstance(exp, eolian.Expression)
640 self.assertEqual(exp.type, eolian.Eolian_Expression_Type.UNARY) 640 self.assertEqual(exp.type, eolian.Eolian_Expression_Type.UNARY)