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

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

Issue 2581613002: Use real IDL types in unit test stubs. (Closed)
Patch Set: 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_definitions_test.py
diff --git a/third_party/WebKit/Source/bindings/scripts/idl_definitions_test.py b/third_party/WebKit/Source/bindings/scripts/idl_definitions_test.py
new file mode 100644
index 0000000000000000000000000000000000000000..78dd73207445859d0dd1e71365bb92235f6e3a30
--- /dev/null
+++ b/third_party/WebKit/Source/bindings/scripts/idl_definitions_test.py
@@ -0,0 +1,21 @@
+# 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_definitions.py."""
+
+import unittest
+
+from idl_definitions import IdlAttribute
+
+
+class IdlAttributeTest(unittest.TestCase):
+
+ def test_no_params(self):
+ try:
+ IdlAttribute()
+ except Exception as exception: # pylint: disable=broad-except
+ self.fail('Creating an IdlAttribute with no parameters raised'
+ 'an exception: {}.'.format(exception))

Powered by Google App Engine
This is Rietveld 408576698