| Index: third_party/WebKit/Source/core/html/HTMLIFrameElementTest.cpp
|
| diff --git a/third_party/WebKit/Source/core/html/HTMLIFrameElementTest.cpp b/third_party/WebKit/Source/core/html/HTMLIFrameElementTest.cpp
|
| index 2f8bf21410218febad52c5e4113829067f496811..a79701c63b3805819eb4799e2bdffb34d17e961c 100644
|
| --- a/third_party/WebKit/Source/core/html/HTMLIFrameElementTest.cpp
|
| +++ b/third_party/WebKit/Source/core/html/HTMLIFrameElementTest.cpp
|
| @@ -9,18 +9,24 @@
|
|
|
| namespace blink {
|
|
|
| +// Test setting via the Element attribute (HTML codepath).
|
| TEST(HTMLIFrameElementTest, SetPermissionsAttribute)
|
| {
|
| Document* document = Document::create();
|
| HTMLIFrameElement* iframe = HTMLIFrameElement::create(*document);
|
|
|
| - // Test setting via the Element attribute (HTML codepath).
|
| iframe->setAttribute(HTMLNames::permissionsAttr, "geolocation");
|
| EXPECT_EQ("geolocation", iframe->permissions()->value());
|
| iframe->setAttribute(HTMLNames::permissionsAttr, "geolocation notifications");
|
| EXPECT_EQ("geolocation notifications", iframe->permissions()->value());
|
| +}
|
| +
|
| +// Test setting via the DOMTokenList (JS codepath).
|
| +TEST(HTMLIFrameElementTest, SetPermissionsAttributeJS)
|
| +{
|
| + Document* document = Document::create();
|
| + HTMLIFrameElement* iframe = HTMLIFrameElement::create(*document);
|
|
|
| - // Test setting via the DOMTokenList (JS codepath).
|
| iframe->permissions()->setValue("midi");
|
| EXPECT_EQ("midi", iframe->getAttribute(HTMLNames::permissionsAttr));
|
| }
|
|
|