Commit 12cc3cab authored by Adithya Srinivasan's avatar Adithya Srinivasan Committed by Commit Bot

Remove blink_perf.dom/select-long-word.html

This test case is unrealistic as words are usually never that long.
Slowing down selection of a word this long is acceptable as most words
on a webpage can still be selected in under 100ms.

Bug: 783345
Change-Id: I55ca93401b94018f45d9a3dbccbe00b9677ab9c1
Reviewed-on: https://chromium-review.googlesource.com/779441Reviewed-by: default avatarNed Nguyen <nednguyen@google.com>
Commit-Queue: Ned Nguyen <nednguyen@google.com>
Cr-Commit-Position: refs/heads/master@{#517918}
parent 33175057
<!DOCTYPE html>
<style>
div {
width: 800px;
word-wrap: break-word;
}
</style>
<script src="../resources/runner.js"></script>
<div id="long">
</div>
<script>
var longDiv = document.getElementById('long');
var sel = window.getSelection();
var text = 'GrumpywizardsmaketoxicbrewfortheevilQueenandJack';
for (i = 0; i < 12; i++)
text = text + text;
longDiv.appendChild(document.createTextNode(text));
PerfTestRunner.measureTime({
description: "Measures performance of detecting long word boundaries.",
run: function() {
sel.setPosition(longDiv, 0);
sel.modify("extend", "forward", "word");
},
done: function () { document.body.removeChild(longDiv) }
});
</script>
...@@ -455,8 +455,7 @@ class BlinkPerfDOM(_BlinkPerfBenchmark): ...@@ -455,8 +455,7 @@ class BlinkPerfDOM(_BlinkPerfBenchmark):
def GetExpectations(self): def GetExpectations(self):
class StoryExpectations(story.expectations.StoryExpectations): class StoryExpectations(story.expectations.StoryExpectations):
def SetExpectations(self): def SetExpectations(self):
self.DisableStory('select-long-word.html', pass # Nothing disabled.
[story.expectations.ALL], 'crbug.com/783345')
return StoryExpectations() return StoryExpectations()
......
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