FUEL/0.1/Tests
Jump to navigation
Jump to search
< FUEL/0.1
Application
- Check for existence of
Application- [expect object is defined] - Complete sub tests for each
ApplicationpropertyConsoleStoragePreferencesEvents- events are - "start", "ready", "idle", "quit"
Extensions
Extension
[TODO] Need to find and use a known extension for these tests
- Use
extension.idto read the id - [expect known id] - Use
extension.nameto read the name - [expect known name] - Complete sub tests for each
ExtensionpropertyStoragePreferencesEvents- events are - "install", "uninstall"
Console
[TODO] There appears to be no automatic way to verify, so we will manually check the Error Console after the tests complete.
- Use
console.logto write test names during all other tests - [succeed] - [TODO] Use
console.displayto open the Error Console window
Storage
- Use
storage.hasto check for non-existent item - [expect false] - Use
storage.getto check value of for non-existent item - [expect default value] - Use
storage.setto add an item - Use
storage.hasto check for item - [expect true] - Use
storage.getto check value of item - [expect set value] - Use
storage.setto overwrite value of item - Use
storage.getto check overwritten value of item - [expect overwritten value] - Use
eventsto monitor when a storage item changes
Preferences
- REPEAT for STRING, INT and BOOLEAN
- Use
storage.getto check value of for non-existent item - [expect default value] - Use
storage.setto add a pref - Use
storage.getto check value of pref - [expect set value] - Use
storage.setto overwrite value of pref - Use
storage.getto check overwritten value of pref - [expect overwritten value]
- Use
- Use
storage.setto add a STRING pref - Use
storage.setto overwrite with an INT pref [expect ???] - Use
storage.getto check overwritten INT pref [expect ???] - Use
storage.setto add a INT pref - Use
storage.setto overwrite with an BOOLEAN pref [expect ???] - Use
storage.getto check overwritten BOOLEAN pref [expect ???] - Use
eventsto monitor when a pref changes
Events
- Use
events.addto attach an event listener - Cause/Wait for the event to fire - [expect event listener to fire]
Extensions
[TODO] Need at least one extension loaded to test
- Use
extensions.hasto check for a nonexistent extension - [expect false] - Use
extensions.hasto check for an known extension - [expect true] - Use
extensions.getto check for a nonexistent extension - [expect null] - Use
extensions.getto check for an known extension - [expect valid Extension]