Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(79)

Side by Side Diff: milo/appengine/settings/testable_handler.go

Issue 2748073006: Milo Refactor: Remove theme support (Closed)
Patch Set: Fix builder.html pointer Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2016 The LUCI Authors. All rights reserved.
2 // Use of this source code is governed under the Apache License, Version 2.0
3 // that can be found in the LICENSE file.
4
5 // Data Structures used for defining test data for use with testing each theme.
6
7 package settings
8
9 import (
10 "github.com/luci/luci-go/server/templates"
11 )
12
13 // TestableHandler pairs up a handler with a list of test data.
14 type TestableHandler interface {
15 // ThemedHandler represents the Hanler that this TestableHandler is asso ciated with.
16 ThemedHandler
17 // TestData returns a list of example data used for testing if a theme r enders correctly.
18 TestData() []TestBundle
19 }
20
21 // TestBundle is a template arg associated with a description used for testing.
22 type TestBundle struct {
23 // Description is a short one line description of what the data contains .
24 Description string
25 // Data is the data fed directly into the template.
26 Data templates.Args
27 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698