quickjs-tart

quickjs-based runtime for wallet-core logic
Log | Files | Refs | README | LICENSE

test1513 (699B)


      1 <testcase>
      2 <info>
      3 <keywords>
      4 PROGRESSFUNCTION
      5 DELAY
      6 </keywords>
      7 </info>
      8 
      9 # Server-side
     10 <reply>
     11 <data nocheck="yes">
     12 HTTP/1.1 204 PARTIAL
     13 X-Comment: partial response to keep the client waiting
     14 </data>
     15 <postcmd>
     16 wait 10
     17 </postcmd>
     18 </reply>
     19 
     20 # Client-side
     21 <client>
     22 <server>
     23 http
     24 </server>
     25 <tool>
     26 lib%TESTNUMBER
     27 </tool>
     28 <name>
     29 return failure immediately from progress callback
     30 </name>
     31 
     32 # this server/host won't be used for real
     33 <command>
     34 http://%HOSTIP:%HTTPPORT/%TESTNUMBER
     35 </command>
     36 </client>
     37 
     38 # Verify data after the test has been "shot"
     39 <verify>
     40 <protocol>
     41 </protocol>
     42 # 42 == CURLE_ABORTED_BY_CALLBACK
     43 <errorcode>
     44 42
     45 </errorcode>
     46 <stdout>
     47 PROGRESSFUNCTION called
     48 </stdout>
     49 </verify>
     50 </testcase>