-
-
Notifications
You must be signed in to change notification settings - Fork 108
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9758 from keymanapp/chore/linux/coverage
chore(linux): Add code coverage index page
- Loading branch information
Showing
5 changed files
with
65 additions
and
7 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,37 @@ | ||
<html> | ||
<head> | ||
<title>Keyman for Linux Code Coverage</title> | ||
<style type="text/css"> | ||
body, html {width: 100%; height: 100%; margin-left: 0; padding-left: 0;} | ||
.row-container {display: flex; width: 100%; height: 100%; flex-direction: column; overflow: hidden;} | ||
.second-row { flex-grow: 1; border: none; margin: 0; padding: 0; border: none; } | ||
.tablink { background-color: #555; color: white; float: left; border: none; border-right: 1px solid black; outline: none; cursor: pointer; padding: 14px 16px; font-size: 17px; width: 33.3%; } | ||
.tablink:hover { background-color: #777; } | ||
</style> | ||
</head> | ||
<body> | ||
<div class="row-container"> | ||
<div class="first-row"> | ||
<h1>Keyman for Linux Code Coverage Reports</h1> | ||
<button class="tablink" onclick="openPage(this, 'build/x86_64/debug/meson-logs/coveragereport/index.html')" id="defaultOpen">ibus-keyman</button> | ||
<button class="tablink" onclick="openPage(this, 'keyman-config/build/coveragereport/index.html')">keyman-config</button> | ||
<button class="tablink" onclick="openPage(this, 'keyman-system-service/build/x86_64/debug/meson-logs/coveragereport/index.html')">keyman-system-service</button> | ||
</div> | ||
<iframe id="iframe_a" class="second-row"></iframe> | ||
</div> | ||
|
||
<script> | ||
function openPage(elmnt, filename) { | ||
document.getElementById('iframe_a').src = filename; | ||
tablinks = document.getElementsByClassName("tablink"); | ||
for (i = 0; i < tablinks.length; i++) { | ||
tablinks[i].style.backgroundColor = ""; | ||
} | ||
elmnt.style.backgroundColor = "#777"; | ||
} | ||
|
||
document.getElementById("defaultOpen").click(); | ||
</script> | ||
|
||
</body> | ||
</html> |
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 |
---|---|---|
@@ -1,5 +1,3 @@ | ||
# Keyman for Linux | ||
|
||
See [/docs/linux/README.md](../docs/linux/README.md) for documentation. | ||
|
||
. |
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