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

Unified Diff: third_party/WebKit/LayoutTests/imported/wpt/custom-elements/custom-elements-registry/define-expected.txt

Issue 2024073002: Add callbacks to ScriptCustomElementDefinition (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add tryCatch Created 4 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/bindings/core/v8/ScriptCustomElementDefinition.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/imported/wpt/custom-elements/custom-elements-registry/define-expected.txt
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/custom-elements/custom-elements-registry/define-expected.txt b/third_party/WebKit/LayoutTests/imported/wpt/custom-elements/custom-elements-registry/define-expected.txt
index 69e0edd4a9294370dc014746e41e501ba0a1251e..269a077e34332765107314e31c59d1e632e959ed 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/custom-elements/custom-elements-registry/define-expected.txt
+++ b/third_party/WebKit/LayoutTests/imported/wpt/custom-elements/custom-elements-registry/define-expected.txt
@@ -73,53 +73,27 @@ FAIL If extends is spacer, should throw a NotSupportedError assert_throws: funct
FAIL If extends is elementnametobeunknownelement, should throw a NotSupportedError assert_throws: function "() => {
customElements.define('test-define-extend-' + name, class {}, { extends: name });
}" did not throw
-FAIL If constructor.observedAttributes throws, should rethrow assert_throws: function "() => {
- customElements.define('test-define-observedattributes-rethrow', C);
- }" did not throw
+PASS If constructor.observedAttributes throws, should rethrow
PASS If constructor.prototype throws, should rethrow
PASS If Type(constructor.prototype) is undefined, should throw a TypeError
PASS If Type(constructor.prototype) is string, should throw a TypeError
-FAIL If constructor.prototype.connectedCallback throws, should rethrow assert_throws: function "() => {
- customElements.define(`test-define-${name.toLowerCase()}-rethrow`, C);
- }" did not throw
+PASS If constructor.prototype.connectedCallback throws, should rethrow
PASS If constructor.prototype.connectedCallback is undefined, should succeed
PASS If constructor.prototype.connectedCallback is function, should succeed
-FAIL If constructor.prototype.connectedCallback is null, should throw a TypeError assert_throws: function "() => {
- customElements.define(`test-define-${name.toLowerCase()}-${data.name}`, C);
- }" did not throw
-FAIL If constructor.prototype.connectedCallback is object, should throw a TypeError assert_throws: function "() => {
- customElements.define(`test-define-${name.toLowerCase()}-${data.name}`, C);
- }" did not throw
-FAIL If constructor.prototype.connectedCallback is integer, should throw a TypeError assert_throws: function "() => {
- customElements.define(`test-define-${name.toLowerCase()}-${data.name}`, C);
- }" did not throw
-FAIL If constructor.prototype.disconnectedCallback throws, should rethrow assert_throws: function "() => {
- customElements.define(`test-define-${name.toLowerCase()}-rethrow`, C);
- }" did not throw
+PASS If constructor.prototype.connectedCallback is null, should throw a TypeError
+PASS If constructor.prototype.connectedCallback is object, should throw a TypeError
+PASS If constructor.prototype.connectedCallback is integer, should throw a TypeError
+PASS If constructor.prototype.disconnectedCallback throws, should rethrow
PASS If constructor.prototype.disconnectedCallback is undefined, should succeed
PASS If constructor.prototype.disconnectedCallback is function, should succeed
-FAIL If constructor.prototype.disconnectedCallback is null, should throw a TypeError assert_throws: function "() => {
- customElements.define(`test-define-${name.toLowerCase()}-${data.name}`, C);
- }" did not throw
-FAIL If constructor.prototype.disconnectedCallback is object, should throw a TypeError assert_throws: function "() => {
- customElements.define(`test-define-${name.toLowerCase()}-${data.name}`, C);
- }" did not throw
-FAIL If constructor.prototype.disconnectedCallback is integer, should throw a TypeError assert_throws: function "() => {
- customElements.define(`test-define-${name.toLowerCase()}-${data.name}`, C);
- }" did not throw
-FAIL If constructor.prototype.attributeChangedCallback throws, should rethrow assert_throws: function "() => {
- customElements.define(`test-define-${name.toLowerCase()}-rethrow`, C);
- }" did not throw
+PASS If constructor.prototype.disconnectedCallback is null, should throw a TypeError
+PASS If constructor.prototype.disconnectedCallback is object, should throw a TypeError
+PASS If constructor.prototype.disconnectedCallback is integer, should throw a TypeError
+PASS If constructor.prototype.attributeChangedCallback throws, should rethrow
PASS If constructor.prototype.attributeChangedCallback is undefined, should succeed
PASS If constructor.prototype.attributeChangedCallback is function, should succeed
-FAIL If constructor.prototype.attributeChangedCallback is null, should throw a TypeError assert_throws: function "() => {
- customElements.define(`test-define-${name.toLowerCase()}-${data.name}`, C);
- }" did not throw
-FAIL If constructor.prototype.attributeChangedCallback is object, should throw a TypeError assert_throws: function "() => {
- customElements.define(`test-define-${name.toLowerCase()}-${data.name}`, C);
- }" did not throw
-FAIL If constructor.prototype.attributeChangedCallback is integer, should throw a TypeError assert_throws: function "() => {
- customElements.define(`test-define-${name.toLowerCase()}-${data.name}`, C);
- }" did not throw
+PASS If constructor.prototype.attributeChangedCallback is null, should throw a TypeError
+PASS If constructor.prototype.attributeChangedCallback is object, should throw a TypeError
+PASS If constructor.prototype.attributeChangedCallback is integer, should throw a TypeError
Harness: the test ran to completion.
« no previous file with comments | « no previous file | third_party/WebKit/Source/bindings/core/v8/ScriptCustomElementDefinition.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698