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

Side by Side Diff: milo/appengine/common/testBundle.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
1 // Copyright 2016 The LUCI Authors. All rights reserved. 1 // Copyright 2016 The LUCI Authors. All rights reserved.
2 // Use of this source code is governed under the Apache License, Version 2.0 2 // Use of this source code is governed under the Apache License, Version 2.0
3 // that can be found in the LICENSE file. 3 // that can be found in the LICENSE file.
4 4
5 // Data Structures used for defining test data for use with testing each theme. 5 // Data Structures used for defining test data for use with testing each theme.
6 6
7 package settings 7 package common
8 8
9 import ( 9 import (
10 "github.com/luci/luci-go/server/templates" 10 "github.com/luci/luci-go/server/templates"
11 ) 11 )
12 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. 13 // TestBundle is a template arg associated with a description used for testing.
22 type TestBundle struct { 14 type TestBundle struct {
23 // Description is a short one line description of what the data contains . 15 // Description is a short one line description of what the data contains .
24 Description string 16 Description string
25 // Data is the data fed directly into the template. 17 // Data is the data fed directly into the template.
26 Data templates.Args 18 Data templates.Args
27 } 19 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698