Commit 17c806fd authored by Varun Varada's avatar Varun Varada Committed by Commit Bot

Allow unit tests to pass for DevTools change

This commit allows a Blink web test to pass that is dependent on
some DevTools code that is changed by this CL:

https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/1983391

Bug: chromium:1983391
Change-Id: I3cfb51b34335a28db49d14cb723398b18df44002
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1987200
Commit-Queue: Tim van der Lippe <tvanderlippe@chromium.org>
Reviewed-by: default avatarBenedikt Meurer <bmeurer@chromium.org>
Cr-Commit-Position: refs/heads/master@{#733952}
parent 7123a86d
......@@ -7,10 +7,10 @@ Usage breakdown:
Total: 0 B
Running: Now with data
-- KB used out of -- storage quota.
-- kB used out of -- storage quota.
Usage breakdown:
IndexedDB: --.- KB
Total: --.- KB
IndexedDB: --.- kB
Total: --.- kB
Running: Clear again with ActionDelegate
-- B used out of -- storage quota.
......
......@@ -39,7 +39,7 @@
// Quota will vary between setups, rather strip it altogether
var clean = view._quotaRow.innerHTML.replace(/\&nbsp;/g, ' ');
// Clean usage value because it's platform-dependent.
var quotaStripped = clean.replace(/[\d.]+ (K?B used out of) \d+ .?B([^\d]*)/, '-- $1 --$2');
var quotaStripped = clean.replace(/[\d.]+ (k?B used out of) \d+ .?B([^\d]*)/, '-- $1 --$2');
TestRunner.addResult(quotaStripped);
TestRunner.addResult('Usage breakdown:');
......@@ -53,7 +53,7 @@
typeUsage = children[j].textContent + typeUsage;
if (children[j].classList.contains('pie-chart-size')) {
// Clean usage value because it's platform-dependent.
var cleanedValue = children[j].textContent.replace(/\d+.\d\sKB/, '--.- KB');
var cleanedValue = children[j].textContent.replace(/\d+.\d\skB/, '--.- kB');
typeUsage = typeUsage + cleanedValue;
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment