idlharness.any.js (784B)
1 // META: global=window,dedicatedworker,sharedworker 2 // META: script=/resources/WebIDLParser.js 3 // META: script=/resources/idlharness.js 4 // META: timeout=long 5 6 idl_test( 7 ['xhr'], 8 ['dom', 'html'], 9 idl_array => { 10 idl_array.add_objects({ 11 XMLHttpRequest: ['new XMLHttpRequest()'], 12 XMLHttpRequestUpload: ['(new XMLHttpRequest()).upload'], 13 FormData: ['new FormData()'], 14 ProgressEvent: ['new ProgressEvent("type")'], 15 }); 16 if (self.Window) { 17 self.form = document.createElement('form'); 18 self.submitter = document.createElement('button'); 19 self.form.appendChild(self.submitter); 20 idl_array.add_objects({ 21 FormData: [ 22 'new FormData(form)', 23 'new FormData(form, submitter)' 24 ], 25 }); 26 } 27 } 28 );