-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTODO
59 lines (56 loc) · 2.31 KB
/
TODO
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
TODO:
- [x] Track if website on current tab changes
- [x] Detect if user switches between tabs
- [x] Detect if user switches windows
- [x] Detect if user is in focus or not
- [x] Auto-update time periodically if user is in focus (chrome.alarms)
- [x] Stop time tracking if user is idle (chrome.idle)
- [x] Display time data in popup
- [x] Handle windows closing
- [x] Handle user quitting Chrome
- [x] Store daily time for previous days
- [ ] Store weekly and monthly time
BUGS:
[ ] Detaching tab causes weird stuff
- Doesn't seem to matter too much, just causes a lot of events to fire off
[ ] Opening chrome after quitting causes lots of events to fire.
TESTS:
- [x] Navigate to new page
- [x] Go to new page from current page
- [x] Go to new page from current page, then go unfocused while it's still loading
- [x] Go to new page from current page, then go to other window while it's still loading
- [x] Open new tab
- [x] Switch between tabs normally
- [x] Open new page in different tab
- [x] Wait for other page to load, then visit it
- [x] Go to other page while loading, then wait
- [x] Go to other page while loading, then switch back to original page before it finishes loading
- [x] Click Youtube button in embedded video (tab has "" url)
- [x] Open multiple tabs at once (e.g. recently closed tabs)
- [x] Window focus
- [x] Switch between focused and unfocused
- [x] Switch between 2 non-chrome apps (both unfocused)
- [x] Switch from unfocused to different tab (not active tab)
- [x] Open new window
- [x] Switch between windows (same active tabs)
- [x] Switch between windows (different active tabs)
- [x] Minimize, then reopen window
- [x] Open new tab from unfocused
- [x] Wait for alarm (1 min)
- [x] Idle
- [x] Idle from focused, then click on same active tab
- [x] Idle from unfocused, then click on same active tab
- [x] Idle from focused, then click on different tab
- [x] Idle from unfocused, then click on different tab
- [x] Idle from focused, then go unfocused
- [x] Idle from unfocused, then go unfocused
- [x] Lock computer, then unlock.
- [x] Closing windows
- [x] Close window with multiple windows open
- [x] One tab open
- [x] Multiple tabs open
- [x] Close window with one window open
- [x] One tab open
- [x] Multiple tabs open
- [x] Quit chrome, wait, then reopen
- [x] Detach then reattach tab