| OLD | NEW |
| 1 Tests that dialog.returnValue is settable and returns the last value set. | 1 Tests that dialog.returnValue is settable and returns the last value set. |
| 2 | 2 |
| 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". | 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". |
| 4 | 4 |
| 5 | 5 |
| 6 PASS dialog.returnValue is '' | 6 PASS dialog.returnValue is '' |
| 7 PASS dialog.returnValue is 'Setting value directly' | 7 PASS dialog.returnValue is 'Setting value directly' |
| 8 PASS dialog.returnValue is 'null' | 8 PASS dialog.returnValue is 'null' |
| 9 PASS dialog.returnValue is '' | 9 PASS dialog.returnValue is '' |
| 10 PASS dialog.returnValue is '7' | 10 PASS dialog.returnValue is '7' |
| 11 PASS dialog.returnValue is 'Return value set from close()' | 11 PASS dialog.returnValue is 'Return value set from close()' |
| 12 PASS dialog.returnValue is '' | 12 PASS dialog.returnValue is '' |
| 13 PASS dialog.returnValue is 'null' | 13 PASS dialog.returnValue is 'null' |
| 14 PASS dialog.returnValue is 'Should not change because no argument to close()' | 14 PASS dialog.returnValue is 'Should not change because no argument to close()' |
| 15 PASS dialog.returnValue is 'Should not change because of undefined argument to c
lose()' | |
| 16 PASS dialog.close('blah') threw exception InvalidStateError: Failed to execute '
close' on 'HTMLDialogElement': The element does not have an 'open' attribute, an
d therefore cannot be closed.. | 15 PASS dialog.close('blah') threw exception InvalidStateError: Failed to execute '
close' on 'HTMLDialogElement': The element does not have an 'open' attribute, an
d therefore cannot be closed.. |
| 17 PASS dialog.returnValue is 'Should not change because close() is invalid' | 16 PASS dialog.returnValue is 'Should not change because close() is invalid' |
| 18 PASS successfullyParsed is true | 17 PASS successfullyParsed is true |
| 19 | 18 |
| 20 TEST COMPLETE | 19 TEST COMPLETE |
| 21 | 20 |
| OLD | NEW |