| Index: third_party/WebKit/LayoutTests/http/tests/worklet/animation-worklet-import.html
|
| diff --git a/third_party/WebKit/LayoutTests/http/tests/worklet/import.html b/third_party/WebKit/LayoutTests/http/tests/worklet/animation-worklet-import.html
|
| similarity index 78%
|
| copy from third_party/WebKit/LayoutTests/http/tests/worklet/import.html
|
| copy to third_party/WebKit/LayoutTests/http/tests/worklet/animation-worklet-import.html
|
| index 2b99c5c254cbd33e3b7dab0b0d3c1e73a1771b3b..77aa88ef48ac423e272951a0a64f4607a930dd5b 100644
|
| --- a/third_party/WebKit/LayoutTests/http/tests/worklet/import.html
|
| +++ b/third_party/WebKit/LayoutTests/http/tests/worklet/animation-worklet-import.html
|
| @@ -8,7 +8,7 @@
|
| <script>
|
| promise_test(function() {
|
|
|
| - return paintWorklet.import('resources/empty-worklet-script.js').then(function(undefined_arg) {
|
| + return animationWorklet.import('resources/empty-worklet-script.js').then(function(undefined_arg) {
|
| assert_equals(undefined_arg, undefined, 'Promise should resolve with no arguments.');
|
| }).catch(function(error) {
|
| assert_unreached('unexpected rejection: ' + error);
|
| @@ -18,7 +18,7 @@
|
|
|
| promise_test(function() {
|
|
|
| - return paintWorklet.import('resources/throwing-worklet-script.js').then(function(undefined_arg) {
|
| + return animationWorklet.import('resources/throwing-worklet-script.js').then(function(undefined_arg) {
|
| assert_equals(undefined_arg, undefined, 'Promise should resolve with no arguments.');
|
| }).catch(function(error) {
|
| assert_unreached('unexpected rejection: ' + error);
|
| @@ -28,7 +28,7 @@
|
|
|
| promise_test(function() {
|
|
|
| - return paintWorklet.import('non-existant-worklet-script.js').then(function() {
|
| + return animationWorklet.import('non-existant-worklet-script.js').then(function() {
|
| assert_unreached('import should fail.');
|
| }).catch(function(error) {
|
| assert_equals(error.name, 'NetworkError', 'error should be a NetworkError.');
|
| @@ -38,7 +38,7 @@
|
|
|
| promise_test(function() {
|
|
|
| - return paintWorklet.import('http://invalid:123$').then(function() {
|
| + return animationWorklet.import('http://invalid:123$').then(function() {
|
| assert_unreached('import should fail.');
|
| }).catch(function(error) {
|
| assert_equals(error.name, 'SyntaxError', 'error should be a SyntaxError.');
|
|
|