OLD | NEW |
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 from telemetry.page import page as page_module | 4 from telemetry.page import page as page_module |
5 from telemetry.page import page_set as page_set_module | 5 from telemetry.page import page_set as page_set_module |
6 | 6 |
7 | 7 |
8 class ToughSchedulingCasesPage(page_module.Page): | 8 class ToughSchedulingCasesPage(page_module.Page): |
9 | 9 |
10 def __init__(self, url, page_set): | 10 def __init__(self, url, page_set): |
(...skipping 363 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
374 | 374 |
375 """ Tough scheduler latency test cases """ | 375 """ Tough scheduler latency test cases """ |
376 | 376 |
377 def __init__(self): | 377 def __init__(self): |
378 super(ToughSchedulingCasesPageSet, self).__init__( | 378 super(ToughSchedulingCasesPageSet, self).__init__( |
379 user_agent_type='mobile', | 379 user_agent_type='mobile', |
380 archive_data_file='data/tough_scheduling_cases.json', | 380 archive_data_file='data/tough_scheduling_cases.json', |
381 bucket=page_set_module.INTERNAL_BUCKET) | 381 bucket=page_set_module.INTERNAL_BUCKET) |
382 | 382 |
383 # Why: Simple scrolling baseline | 383 # Why: Simple scrolling baseline |
384 self.AddPage(ToughSchedulingCasesPage( | 384 self.AddUserStory(ToughSchedulingCasesPage( |
385 'file://tough_scheduling_cases/simple_text_page.html', | 385 'file://tough_scheduling_cases/simple_text_page.html', |
386 self)) | 386 self)) |
387 self.AddPage(Page1(self)) | 387 self.AddUserStory(Page1(self)) |
388 self.AddPage(Page2(self)) | 388 self.AddUserStory(Page2(self)) |
389 self.AddPage(Page3(self)) | 389 self.AddUserStory(Page3(self)) |
390 self.AddPage(Page4(self)) | 390 self.AddUserStory(Page4(self)) |
391 # Disabled until crbug.com/413829 is fixed. | 391 # Disabled until crbug.com/413829 is fixed. |
392 # self.AddPage(Page5(self)) | 392 # self.AddUserStory(Page5(self)) |
393 # Disabled because of crbug.com/413829 and flakiness crbug.com/368532 | 393 # Disabled because of crbug.com/413829 and flakiness crbug.com/368532 |
394 # self.AddPage(Page6(self)) | 394 # self.AddUserStory(Page6(self)) |
395 # Why: Touch handler scrolling baseline | 395 # Why: Touch handler scrolling baseline |
396 self.AddPage(ToughSchedulingCasesPage( | 396 self.AddUserStory(ToughSchedulingCasesPage( |
397 'file://tough_scheduling_cases/touch_handler_scrolling.html', | 397 'file://tough_scheduling_cases/touch_handler_scrolling.html', |
398 self)) | 398 self)) |
399 self.AddPage(Page7(self)) | 399 self.AddUserStory(Page7(self)) |
400 self.AddPage(Page8(self)) | 400 self.AddUserStory(Page8(self)) |
401 self.AddPage(Page9(self)) | 401 self.AddUserStory(Page9(self)) |
402 self.AddPage(Page10(self)) | 402 self.AddUserStory(Page10(self)) |
403 self.AddPage(Page11(self)) | 403 self.AddUserStory(Page11(self)) |
404 self.AddPage(Page12(self)) | 404 self.AddUserStory(Page12(self)) |
405 # Why: requestAnimationFrame scrolling baseline | 405 # Why: requestAnimationFrame scrolling baseline |
406 self.AddPage(ToughSchedulingCasesPage( | 406 self.AddUserStory(ToughSchedulingCasesPage( |
407 'file://tough_scheduling_cases/raf.html', | 407 'file://tough_scheduling_cases/raf.html', |
408 self)) | 408 self)) |
409 # Why: Test canvas blocking behavior | 409 # Why: Test canvas blocking behavior |
410 self.AddPage(ToughSchedulingCasesPage( | 410 self.AddUserStory(ToughSchedulingCasesPage( |
411 'file://tough_scheduling_cases/raf_canvas.html', | 411 'file://tough_scheduling_cases/raf_canvas.html', |
412 self)) | 412 self)) |
413 # Disabled until crbug.com/413829 is fixed. | 413 # Disabled until crbug.com/413829 is fixed. |
414 # self.AddPage(Page13(self)) | 414 # self.AddUserStory(Page13(self)) |
415 # Disabled because of crbug.com/413829 and flakiness crbug.com/368532 | 415 # Disabled because of crbug.com/413829 and flakiness crbug.com/368532 |
416 # self.AddPage(Page14(self)) | 416 # self.AddUserStory(Page14(self)) |
417 self.AddPage(Page15(self)) | 417 self.AddUserStory(Page15(self)) |
418 self.AddPage(Page16(self)) | 418 self.AddUserStory(Page16(self)) |
419 # Why: Test a requestAnimationFrame handler with concurrent CSS animation | 419 # Why: Test a requestAnimationFrame handler with concurrent CSS animation |
420 self.AddPage(ToughSchedulingCasesPage( | 420 self.AddUserStory(ToughSchedulingCasesPage( |
421 'file://tough_scheduling_cases/raf_animation.html', | 421 'file://tough_scheduling_cases/raf_animation.html', |
422 self)) | 422 self)) |
423 # Why: Stress test for the scheduler | 423 # Why: Stress test for the scheduler |
424 self.AddPage(ToughSchedulingCasesPage( | 424 self.AddUserStory(ToughSchedulingCasesPage( |
425 'file://tough_scheduling_cases/raf_touch_animation.html', | 425 'file://tough_scheduling_cases/raf_touch_animation.html', |
426 self)) | 426 self)) |
427 self.AddPage(Page17(self)) | 427 self.AddUserStory(Page17(self)) |
428 self.AddPage(Page18(self)) | 428 self.AddUserStory(Page18(self)) |
429 self.AddPage(Page19(self)) | 429 self.AddUserStory(Page19(self)) |
430 self.AddPage(Page20(self)) | 430 self.AddUserStory(Page20(self)) |
431 # Why: Baseline for scrolling in the presence of a no-op touch handler | 431 # Why: Baseline for scrolling in the presence of a no-op touch handler |
432 self.AddPage(EmptyTouchHandlerPage( | 432 self.AddUserStory(EmptyTouchHandlerPage( |
433 name='baseline', | 433 name='baseline', |
434 desktop=False, | 434 desktop=False, |
435 slow_handler=False, | 435 slow_handler=False, |
436 bounce=False, | 436 bounce=False, |
437 page_set=self)) | 437 page_set=self)) |
438 # Why: Slow handler blocks scroll start | 438 # Why: Slow handler blocks scroll start |
439 self.AddPage(EmptyTouchHandlerPage( | 439 self.AddUserStory(EmptyTouchHandlerPage( |
440 name='slow_handler', | 440 name='slow_handler', |
441 desktop=False, | 441 desktop=False, |
442 slow_handler=True, | 442 slow_handler=True, |
443 bounce=False, | 443 bounce=False, |
444 page_set=self)) | 444 page_set=self)) |
445 # Why: Slow handler blocks scroll start until touch ACK timeout | 445 # Why: Slow handler blocks scroll start until touch ACK timeout |
446 self.AddPage(EmptyTouchHandlerPage( | 446 self.AddUserStory(EmptyTouchHandlerPage( |
447 name='desktop_slow_handler', | 447 name='desktop_slow_handler', |
448 desktop=True, | 448 desktop=True, |
449 slow_handler=True, | 449 slow_handler=True, |
450 bounce=False, | 450 bounce=False, |
451 page_set=self)) | 451 page_set=self)) |
452 # Why: Scroll bounce showing repeated transitions between scrolling and | 452 # Why: Scroll bounce showing repeated transitions between scrolling and |
453 # sending synchronous touchmove events. Should be nearly as fast as | 453 # sending synchronous touchmove events. Should be nearly as fast as |
454 # scroll baseline. | 454 # scroll baseline. |
455 self.AddPage(EmptyTouchHandlerPage( | 455 self.AddUserStory(EmptyTouchHandlerPage( |
456 name='bounce', | 456 name='bounce', |
457 desktop=False, | 457 desktop=False, |
458 slow_handler=False, | 458 slow_handler=False, |
459 bounce=True, | 459 bounce=True, |
460 page_set=self)) | 460 page_set=self)) |
461 # Why: Scroll bounce with slow handler, repeated blocking. | 461 # Why: Scroll bounce with slow handler, repeated blocking. |
462 self.AddPage(EmptyTouchHandlerPage( | 462 self.AddUserStory(EmptyTouchHandlerPage( |
463 name='bounce_slow_handler', | 463 name='bounce_slow_handler', |
464 desktop=False, | 464 desktop=False, |
465 slow_handler=True, | 465 slow_handler=True, |
466 bounce=True, | 466 bounce=True, |
467 page_set=self)) | 467 page_set=self)) |
468 # Why: Scroll bounce with slow handler on desktop, blocks only once until | 468 # Why: Scroll bounce with slow handler on desktop, blocks only once until |
469 # ACK timeout. | 469 # ACK timeout. |
470 self.AddPage(EmptyTouchHandlerPage( | 470 self.AddUserStory(EmptyTouchHandlerPage( |
471 name='bounce_desktop_slow_handler', | 471 name='bounce_desktop_slow_handler', |
472 desktop=True, | 472 desktop=True, |
473 slow_handler=True, | 473 slow_handler=True, |
474 bounce=True, | 474 bounce=True, |
475 page_set=self)) | 475 page_set=self)) |
476 # Why: For measuring the latency of scroll-synchronized effects. | 476 # Why: For measuring the latency of scroll-synchronized effects. |
477 self.AddPage(SynchronizedScrollOffsetPage(page_set=self)) | 477 self.AddUserStory(SynchronizedScrollOffsetPage(page_set=self)) |
478 # Why: Good examples of poor initial scrolling | 478 # Why: Good examples of poor initial scrolling |
479 self.AddPage(ToughSchedulingCasesPage( | 479 self.AddUserStory(ToughSchedulingCasesPage( |
480 'http://www.latimes.com', | 480 'http://www.latimes.com', |
481 self)) | 481 self)) |
482 self.AddPage(ToughSchedulingCasesPage( | 482 self.AddUserStory(ToughSchedulingCasesPage( |
483 'http://m.espn.go.com/nhl/rankings', | 483 'http://m.espn.go.com/nhl/rankings', |
484 self)) | 484 self)) |
OLD | NEW |