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

Side by Side Diff: third_party/WebKit/LayoutTests/animations/web-animations/keyframe-exceptions.html

Issue 2976613002: Move Web Animations API tests to subdirectory (Closed)
Patch Set: Created 3 years, 5 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
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <script src="../resources/testharness.js"></script> 2 <script src="../../resources/testharness.js"></script>
3 <script src="../resources/testharnessreport.js"></script> 3 <script src="../../resources/testharnessreport.js"></script>
4 4
5 <script> 5 <script>
6 function assert_throws_with_message(e, f, m) { 6 function assert_throws_with_message(e, f, m) {
7 try { 7 try {
8 f(); 8 f();
9 } catch(exception) { 9 } catch(exception) {
10 assert_equals(exception.name, e); 10 assert_equals(exception.name, e);
11 assert_equals(exception.message, m); 11 assert_equals(exception.message, m);
12 } 12 }
13 } 13 }
(...skipping 21 matching lines...) Expand all
35 assert_throws_with_message('TypeError', 35 assert_throws_with_message('TypeError',
36 function() { 36 function() {
37 document.documentElement.animate([ 37 document.documentElement.animate([
38 {offset: -1} 38 {offset: -1}
39 ]); 39 ]);
40 }, 40 },
41 "Failed to execute 'animate' on 'Element': Offsets provided outside the rang e [0, 1]" 41 "Failed to execute 'animate' on 'Element': Offsets provided outside the rang e [0, 1]"
42 ); 42 );
43 }); 43 });
44 </script> 44 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698