Upstream version 9.38.198.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / fast / dom / HTMLDialogElement / dialog-return-value-expected.txt
1 Tests that dialog.returnValue is settable and returns the last value set.
2
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
4
5
6 PASS dialog.returnValue is ''
7 PASS dialog.returnValue is 'Setting value directly'
8 PASS dialog.returnValue is 'null'
9 PASS dialog.returnValue is ''
10 PASS dialog.returnValue is '7'
11 PASS dialog.returnValue is 'Return value set from close()'
12 PASS dialog.returnValue is ''
13 PASS dialog.returnValue is 'null'
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 close()'
16 PASS dialog.close('blah') threw exception InvalidStateError: Failed to execute 'close' on 'HTMLDialogElement': The element does not have an 'open' attribute, and therefore cannot be closed..
17 PASS dialog.returnValue is 'Should not change because close() is invalid'
18 PASS successfullyParsed is true
19
20 TEST COMPLETE
21