Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(328)

Unified Diff: third_party/WebKit/Source/bindings/scripts/idl_types_test.py

Issue 2581373004: [Webmodules]: Start handling types a bit more intelligently. (Closed)
Patch Set: Feedback addressed. Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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)

Powered by Google App Engine
This is Rietveld 408576698