-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Current sorting algorithm doesn't distinct between tabs with equal UR…
…Ls. (#69) * Add ids in tab sorting tests * Use creation order in tabs sorting * Prioritize the most recently active tab * Show the effect of creation order usage in e2e tests
- Loading branch information
Showing
6 changed files
with
204 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
// eslint-disable-next-line @typescript-eslint/no-var-requires | ||
const http = require('http') | ||
|
||
function sendData(req, res) { | ||
setTimeout(() => { | ||
res.writeHead(200) | ||
res.write('Hello, World!') | ||
sendData(req, res) | ||
}, 1000) | ||
} | ||
|
||
const server = http.createServer((req, res) => { | ||
sendData(req, res) | ||
}) | ||
server.listen(8080) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import {ITab} from './check-tab' | ||
|
||
export function getTabsInfo(tabs: ITab[]): string { | ||
return tabs.map((tab) => `#${tab.id} ${tab.title}`).join('\n') | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters