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

Side by Side Diff: LayoutTests/http/tests/xmlhttprequest/send-object-tostring-check.html

Issue 1030613002: [bindings] Make XMLHttpRequest.send() use the generated binding code over the custom one. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Patch for landing Created 5 years, 9 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 unified diff | Download patch
« no previous file with comments | « no previous file | LayoutTests/http/tests/xmlhttprequest/send-object-tostring-check-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <script src="/js-test-resources/js-test.js"></script>
5 <script>
6 description('Test to verify XMLHttpRequest.send(...), with an object, calls toSt ring exactly once.');
7 var testObj = new function() {
8 this.callCounter = 0;
9 this.toString = function() {
10 this.callCounter++;
11 return 'Hello World';
12 };
13 }
14
15 xhr = new XMLHttpRequest;
16 xhr.open('GET', 'resources/get.txt', true);
17 xhr.send(testObj);
18 shouldBe('testObj.callCounter', '1');
19 </script>
20 </head>
21 </html>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/http/tests/xmlhttprequest/send-object-tostring-check-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698