servo/tests/wpt/web-platform-tests/WebIDL/valid/idl/enum.widl

8 lines
No EOL
180 B
Text

enum MealType { "rice", "noodles", "other" };
interface Meal {
attribute MealType type;
attribute float size; // in grams
void initialize(MealType type, float size);
};