generate styles dynamically with universal reactivity, test for conflicting state names
This commit is contained in:
@@ -277,4 +277,20 @@ window.testSuites.push( class testInit {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
ConflictingPropertyNameThrowsError() {
|
||||
register(class SidebarFile extends Shadow {
|
||||
$width = 0
|
||||
|
||||
}, randomName("sb-file"))
|
||||
|
||||
try {
|
||||
SidebarFile()
|
||||
return "Did not throw error!"
|
||||
} catch(e) {
|
||||
if(!e.message.includes(`Property name "width" is not valid`)) {
|
||||
throw e
|
||||
}
|
||||
}
|
||||
}
|
||||
})
|
||||
Reference in New Issue
Block a user