Skip to content
This repository has been archived by the owner on Dec 11, 2019. It is now read-only.

Pulled code from about:history into a new historyUtil module #5370

Merged
merged 1 commit into from
Nov 4, 2016
Merged

Pulled code from about:history into a new historyUtil module #5370

merged 1 commit into from
Nov 4, 2016

Conversation

bsclifton
Copy link
Member

  • Submitted a ticket for my issue if one did not already exist.
  • Used Github auto-closing keywords in the commit message.
  • Added/updated tests for this change (for new code or code which already has tests).
  • Ran git rebase -i to squash commits (if needed).

Fixes #5353

This has regressed at least once before; this provides a way (other than web driver) to test the code.
(both previously and this time, problem is immutable vs mutable; ex: ".get method not found", etc)

Auditors: @bbondy

Test Plan:

  1. Launch Brave and visit about:history
  2. Double click any entry
  3. Enjoy 😄

Fixes #5353

This has regressed at least once before; we need a way besides web driver to test the code.
(usually, problem is immutable vs mutable; ex: ".get method not found", etc)

Auditors: @bbondy

Test Plan:
1. Launch Brave and visit about:history
2. Double click any entry
3. Enjoy :)
if (left.get('lastAccessedTime') > right.get('lastAccessedTime')) return -1
return 0
}).slice(-500)
.sort(historyUtil.sortTimeDescending)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Love to see you pulling things like this out so they are more testable. ++

@bbondy
Copy link
Member

bbondy commented Nov 4, 2016

++

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants