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

Side by Side Diff: LayoutTests/dart/dom/Exceptions.dart

Issue 9188009: Things to unfork. (Closed) Base URL: svn://svn.chromium.org/multivm/trunk/webkit
Patch Set: Created 8 years, 11 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 | Annotate | Revision Log
« no previous file with comments | « LayoutTests/dart/dom/Events-expected.txt ('k') | LayoutTests/dart/dom/Exceptions.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 #import('../../../../../dart/client/testing/unittest/unittest.dart');
2 #import('dart:dom');
3
4 main() {
5 forLayoutTests();
6 test('DOMException', () {
7 try {
8 window.webkitNotifications.createNotification('', '', '');
9 } catch (DOMException e) {
10 Expect.equals(DOMException.SECURITY_ERR, e.code);
11 Expect.equals('SECURITY_ERR', e.name);
12 Expect.equals('SECURITY_ERR: DOM Exception 18', e.message);
13 }
14 });
15 test('EventException', () {
16 final event = window.document.createEvent('Event');
17 // Intentionally do not initialize it!
18 try {
19 window.document.dispatchEvent(event);
20 } catch (EventException e) {
21 Expect.equals(EventException.UNSPECIFIED_EVENT_TYPE_ERR, e.code);
22 Expect.equals('UNSPECIFIED_EVENT_TYPE_ERR', e.name);
23 Expect.equals('UNSPECIFIED_EVENT_TYPE_ERR: DOM Events Exception 0', e.mess age);
24 }
25 });
26 }
OLDNEW
« no previous file with comments | « LayoutTests/dart/dom/Events-expected.txt ('k') | LayoutTests/dart/dom/Exceptions.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698