Index: third_party/WebKit/Source/bindings/scripts/idl_types_test.py |
diff --git a/third_party/WebKit/Source/bindings/scripts/idl_types_test.py b/third_party/WebKit/Source/bindings/scripts/idl_types_test.py |
new file mode 100644 |
index 0000000000000000000000000000000000000000..b21f00b77873eb6eca8828c5e1a878f4e1fe5283 |
--- /dev/null |
+++ b/third_party/WebKit/Source/bindings/scripts/idl_types_test.py |
@@ -0,0 +1,20 @@ |
+# Copyright 2016 The Chromium Authors. All rights reserved. |
+# Use of this source code is governed by a BSD-style license that can be |
+# found in the LICENSE file. |
+ |
+# pylint: disable=import-error,print-statement,relative-import |
+ |
+"""Unit tests for idl_types.py.""" |
+ |
+import unittest |
+ |
+from idl_types import IdlType |
+ |
+ |
+class IdlTypeTest(unittest.TestCase): |
+ |
+ def test_is_void(self): |
+ idl_type = IdlType('void') |
+ self.assertTrue(idl_type.is_void) |
+ idl_type = IdlType('somethingElse') |
+ self.assertFalse(idl_type.is_void) |