sysapps / device-capabilities

API to retrieve the status of the device capabilities supported and system information from the underlying device.
2 stars 7 forks source link

StorageUnit and DisplayUnit are type-name disordered in the web IDL #23

Closed zqzhang closed 10 years ago

zqzhang commented 10 years ago

At https://github.com/crosswalk-project/crosswalk-test-suite/pull/747, @legendlee1314 found that StorageUnit and DisplayUnit are type-name disordered in the web IDL.

dictionary SystemStorageEventInit : EventInit {
    readonly attribute storage StorageUnit;
};

[Constructor(DOMString type, optional SystemStorageEventInit eventInitDict)]
interface SystemStorageEvent : Event {
    readonly    attribute storage StorageUnit;
};

... should be

dictionary SystemStorageEventInit : EventInit {
    readonly attribute StorageUnit storage ;
};

[Constructor(DOMString type, optional SystemStorageEventInit eventInitDict)]
interface SystemStorageEvent : Event {
    readonly    attribute StorageUnit storage;
};
dictionary SystemDisplayEventInit : EventInit {
    readonly attribute display DisplayUnit;
};

[Constructor(DOMString type, optional SystemDisplayEventInit eventInitDict)]
interface SystemDisplayEvent {
    readonly    attribute display DisplayUnit;
};

... should be

dictionary SystemDisplayEventInit : EventInit {
    readonly attribute DisplayUnit display;
};

[Constructor(DOMString type, optional SystemDisplayEventInit eventInitDict)]
interface SystemDisplayEvent {
    readonly    attribute DisplayUnit display;
};