def test_wallclock(self):
     self.assertTrue(
         is_valid_animation_timing(
             "wallclock(1997-07-16T19:20:30.45+01:00)"))
     self.assertTrue(
         is_valid_animation_timing("wallclock(1997-07-16T19:20:30+01:00)"))
     self.assertTrue(
         is_valid_animation_timing("wallclock(1997-07-16T19:20:30)"))
     self.assertTrue(
         is_valid_animation_timing("wallclock(1997-07-16T19:20)"))
 def test_invalid_value(self):
     self.assertFalse(is_valid_animation_timing("xyz"))
     self.assertFalse(is_valid_animation_timing("repeat(0"))
     self.assertFalse(is_valid_animation_timing("repeat0)"))
     self.assertFalse(is_valid_animation_timing("accessKeya)"))
     self.assertFalse(is_valid_animation_timing("accessKey(Z"))
     self.assertFalse(is_valid_animation_timing("001"))
     self.assertFalse(is_valid_animation_timing("wallclock(1997-07-16T19:2)"))
     self.assertFalse(is_valid_animation_timing("wallclock(1997-07-16T19:)"))
     self.assertFalse(is_valid_animation_timing("wallclock(1997-07-16T19)"))
Exemplo n.º 3
0
 def test_invalid_value(self):
     self.assertFalse(is_valid_animation_timing("xyz"))
     self.assertFalse(is_valid_animation_timing("repeat(0"))
     self.assertFalse(is_valid_animation_timing("repeat0)"))
     self.assertFalse(is_valid_animation_timing("accessKeya)"))
     self.assertFalse(is_valid_animation_timing("accessKey(Z"))
     self.assertFalse(is_valid_animation_timing("001sec"))
     self.assertFalse(is_valid_animation_timing("wallclock(1997-07-16T19:2)"))
     self.assertFalse(is_valid_animation_timing("wallclock(1997-07-16T19:)"))
     self.assertFalse(is_valid_animation_timing("wallclock(1997-07-16T19)"))
 def test_event_value(self):
     # Id-Value does not start with '#'
     self.assertTrue(is_valid_animation_timing("shape.click+5min"))
     # Id-Value starts with '#'
     self.assertTrue(is_valid_animation_timing("#001.click+5min"))
     self.assertTrue(is_valid_animation_timing("#001.mouseover-5min"))
     self.assertTrue(is_valid_animation_timing("mouseup-5min"))
     self.assertTrue(is_valid_animation_timing("mousedown+5min"))
     self.assertTrue(is_valid_animation_timing("mouseout"))
     self.assertTrue(is_valid_animation_timing("focusout"))
     self.assertTrue(is_valid_animation_timing("focusin"))
Exemplo n.º 5
0
 def test_event_value(self):
     # Id-Value does not start with '#'
     self.assertTrue(is_valid_animation_timing("shape.click+5min"))
     # Id-Value starts with '#'
     self.assertTrue(is_valid_animation_timing("#001.click+5min"))
     self.assertTrue(is_valid_animation_timing("#001.mouseover-5min"))
     self.assertTrue(is_valid_animation_timing("mouseup-5min"))
     self.assertTrue(is_valid_animation_timing("mousedown+5min"))
     self.assertTrue(is_valid_animation_timing("mouseout"))
     self.assertTrue(is_valid_animation_timing("focusout"))
     self.assertTrue(is_valid_animation_timing("focusin"))
Exemplo n.º 6
0
 def is_timing_value_list(self, value):
     if is_string(value):
         return is_valid_animation_timing(value)
     else:
         return False
 def test_wallclock(self):
     self.assertTrue(is_valid_animation_timing("wallclock(1997-07-16T19:20:30.45+01:00)"))
     self.assertTrue(is_valid_animation_timing("wallclock(1997-07-16T19:20:30+01:00)"))
     self.assertTrue(is_valid_animation_timing("wallclock(1997-07-16T19:20:30)"))
     self.assertTrue(is_valid_animation_timing("wallclock(1997-07-16T19:20)"))
 def test_accessKey_value(self):
     self.assertTrue(is_valid_animation_timing("accessKey(a)+5min"))
     self.assertTrue(is_valid_animation_timing("accessKey(Z)-5min"))
     self.assertTrue(is_valid_animation_timing("accessKey(a)"))
     self.assertTrue(is_valid_animation_timing("accessKey(Z)"))
 def test_repeat_value(self):
     self.assertTrue(is_valid_animation_timing("#001.repeat(1)+5min"))
     self.assertTrue(is_valid_animation_timing("repeat(1)-5min"))
 def test_syncbase_value(self):
     self.assertTrue(is_valid_animation_timing("#001.begin+5min"))
     self.assertTrue(is_valid_animation_timing("#001.end-5min"))
     self.assertTrue(is_valid_animation_timing("#0A1.begin"))
     self.assertTrue(is_valid_animation_timing("#0A1.end"))
 def test_offset_value(self):
     self.assertTrue(is_valid_animation_timing("+5min"))
     self.assertTrue(is_valid_animation_timing("-5s"))
Exemplo n.º 12
0
 def is_timing_value_list(self, value):
     if is_string(value):
         return is_valid_animation_timing(value)
     else:
         return False
Exemplo n.º 13
0
 def test_accessKey_value(self):
     self.assertTrue(is_valid_animation_timing("accessKey(a)+5min"))
     self.assertTrue(is_valid_animation_timing("accessKey(Z)-5min"))
     self.assertTrue(is_valid_animation_timing("accessKey(a)"))
     self.assertTrue(is_valid_animation_timing("accessKey(Z)"))
Exemplo n.º 14
0
 def test_repeat_value(self):
     self.assertTrue(is_valid_animation_timing("#001.repeat(1)+5min"))
     self.assertTrue(is_valid_animation_timing("repeat(1)-5min"))
Exemplo n.º 15
0
 def test_syncbase_value(self):
     self.assertTrue(is_valid_animation_timing("#001.begin+5min"))
     self.assertTrue(is_valid_animation_timing("#001.end-5min"))
     self.assertTrue(is_valid_animation_timing("#0A1.begin"))
     self.assertTrue(is_valid_animation_timing("#0A1.end"))
Exemplo n.º 16
0
 def test_offset_value(self):
     self.assertTrue(is_valid_animation_timing("+5min"))
     self.assertTrue(is_valid_animation_timing("-5s"))
     self.assertTrue(is_valid_animation_timing("1s"))
     self.assertTrue(is_valid_animation_timing("0.1s"))