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

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/local/formdata/formdata-methods.html

Issue 1898703003: Remove testharness.js and friends in LayoutTests/http/tests/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <title>FormData interface</title> 2 <title>FormData interface</title>
3 <script src="../../resources/testharness.js"></script> 3 <script src="../../../../resources/testharness.js"></script>
jsbell 2016/04/18 16:28:20 I don't understand this - since this file is not 4
tkent 2016/04/18 21:07:41 Tess in http/tests/local run without a web server.
4 <script src="../../resources/testharnessreport.js"></script> 4 <script src="../../../../resources/testharnessreport.js"></script>
5 <script> 5 <script>
6 6
7 // Helpers 7 // Helpers
8 8
9 function serializeFormData(formData) 9 function serializeFormData(formData)
10 { 10 {
11 return new Promise(function(resolve, reject) { 11 return new Promise(function(resolve, reject) {
12 var xhr = new XMLHttpRequest(), async = true; 12 var xhr = new XMLHttpRequest(), async = true;
13 xhr.open( 13 xhr.open(
14 'POST', 14 'POST',
(...skipping 375 matching lines...) Expand 10 before | Expand all | Expand 10 after
390 var values = []; 390 var values = [];
391 for(var entry of fd.values()) 391 for(var entry of fd.values())
392 values.push(entry); 392 values.push(entry);
393 assert_array_equals(values, expected_values, 393 assert_array_equals(values, expected_values,
394 'values() iterator should see non-deleted values'); 394 'values() iterator should see non-deleted values');
395 }()); 395 }());
396 396
397 }, 'FormData - iterators'); 397 }, 'FormData - iterators');
398 398
399 </script> 399 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698