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

Unified Diff: third_party/WebKit/LayoutTests/fast/dom/idl-callback-function-unittest.html

Issue 2312093003: Generated bindings for IDL callback functions (Closed)
Patch Set: Changed BUILD.gn Created 4 years, 3 months 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/LayoutTests/fast/dom/idl-callback-function-unittest.html
diff --git a/third_party/WebKit/LayoutTests/fast/dom/idl-callback-function-unittest.html b/third_party/WebKit/LayoutTests/fast/dom/idl-callback-function-unittest.html
new file mode 100644
index 0000000000000000000000000000000000000000..71f16a80132015525871ed78a45cd4b6f4ff4bef
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/dom/idl-callback-function-unittest.html
@@ -0,0 +1,17 @@
+<!DOCTYPE html>
+<script src="../../resources/testharness.js"></script>
+<script src="../../resources/testharnessreport.js"></script>
+<script>
+test(function() {
+ var test = internals.callbackFunctionTest();
+ var callback1 = function(msg1, msg2) {
+ return msg1 + ', ' + msg2;
+ };
+ assert_equals(test.testDOMString(callback1), 'SUCCESS: hello, world');
+
+ var callback2 = function(msg1, msg2) {
+ return msg1 + msg1 + ' ' + msg2 + msg2;
+ };
+ assert_equals(test.testDOMString(callback2), 'SUCCESS: hellohello worldworld');
+}, 'Callback function which takes two strings');
+</script>

Powered by Google App Engine
This is Rietveld 408576698