Chromium Code Reviews| 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(); |
|
bashi
2016/09/13 00:35:05
test -> callbackFunctionTest
lkawai
2016/09/16 05:05:49
Done.
|
| + var callback1 = function(msg1, msg2) { |
| + return msg1 + ', ' + msg2; |
| + }; |
| + assert_equals(test.testDOMString(callback1), 'SUCCESS: hello, world'); |
|
Yuki
2016/09/14 11:57:22
I'd recommend to make testDOMString take string ar
lkawai
2016/09/16 05:05:49
Done.
|
| + |
| + 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> |