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

Side by Side Diff: milo/appengine/settings/html_data.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 package settings
6
7 import (
8 "github.com/luci/luci-go/milo/api/resp"
9 "github.com/luci/luci-go/server/templates"
10 )
11
12 // TestableSettings is a subclass of Settings that interfaces with
13 // TestableHandler and includes sample test data.
14 type TestableSettings struct{ Settings }
15
16 // TestData returns sample test data.
17 func (s TestableSettings) TestData() []TestBundle {
18 return []TestBundle{
19 {
20 Description: "Settings",
21 Data: templates.Args{
22 "Settings": &resp.Settings{
23 ActionURL: "/post/action",
24 Theme: &resp.Choices{
25 Choices: GetAllThemes(),
26 Selected: "bootstrap",
27 },
28 },
29 "XsrfToken": "thisisatoken",
30 },
31 },
32 }
33 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698